1 package Koha::Exceptions::Patron;
8 'Koha::Exceptions::Patron' => {
9 isa => 'Koha::Exception',
11 'Koha::Exceptions::Patron::FailedDelete' => {
12 isa => 'Koha::Exceptions::Patron',
13 description => "Deleting patron failed"
15 'Koha::Exceptions::Patron::FailedDeleteAnonymousPatron' => {
16 isa => 'Koha::Exceptions::Patron',
17 description => "Deleting patron failed, AnonymousPatron is not deleteable"
19 'Koha::Exceptions::Patron::MissingMandatoryExtendedAttribute' => {
20 isa => 'Koha::Exceptions::Patron',
21 description => "Mandatory extended attribute missing",
29 my $msg = $self->message;
32 if ( $self->isa('Koha::Exceptions::Patron::MissingMandatoryExtendedAttribute') ) {
33 $msg = sprintf("Missing mandatory extended attribute (type=%s)", $self->type );
42 Koha::Exceptions::Patron - Base class for patron exceptions
46 =head2 Koha::Exceptions::Patron
48 Generic patron exception.
50 =head2 Koha::Exceptions::Patron::FailedDelete
52 Deleting patron failed.
54 =head2 Koha::Exceptions::Patron::FailedDeleteAnonymousPatron
56 Tried to delete the anonymous patron.
58 =head2 Koha::Exceptions::Patron::MissingMandatoryExtendedAttribute
60 A required mandatory extended attribute is missing.
66 Overloaded method for exception stringifying.