1 package Koha::Exceptions::Patron;
6 'Koha::Exceptions::Patron' => {
7 description => "Something went wrong!"
9 'Koha::Exceptions::Patron::FailedDelete' => {
10 isa => 'Koha::Exceptions::Patron',
11 description => "Deleting patron failed"
13 'Koha::Exceptions::Patron::FailedDeleteAnonymousPatron' => {
14 isa => 'Koha::Exceptions::Patron',
15 description => "Deleting patron failed, AnonymousPatron is not deleteable"
17 'Koha::Exceptions::Patron::MissingMandatoryExtendedAttribute' => {
18 isa => 'Koha::Exceptions::Patron',
19 description => "Mandatory extended attribute missing",
27 my $msg = $self->message;
30 if ( $self->isa('Koha::Exceptions::Patron::MissingMandatoryExtendedAttribute') ) {
31 $msg = sprintf("Missing mandatory extended attribute (type=%s)", $self->type );
40 Koha::Exceptions::Patron - Base class for patron exceptions
44 =head2 Koha::Exceptions::Patron
46 Generic patron exception.
48 =head2 Koha::Exceptions::Patron::FailedDelete
50 Deleting patron failed.
52 =head2 Koha::Exceptions::Patron::FailedDeleteAnonymousPatron
54 Tried to delete the anonymous patron.
56 =head2 Koha::Exceptions::Patron::MissingMandatoryExtendedAttribute
58 A required mandatory extended attribute is missing.
64 Overloaded method for exception stringifying.