Bug 20600: (follow-up) Fix critic error
[koha.git] / Koha / Exceptions / Patron / Attribute.pm
1 package Koha::Exceptions::Patron::Attribute;
2
3 use Modern::Perl;
4
5 use Exception::Class (
6
7     'Koha::Exceptions::Patron::Attribute' => {
8         description => 'Something went wrong'
9     },
10     'Koha::Exceptions::Patron::Attribute::NonRepeatable' => {
11         isa => 'Koha::Exceptions::Patron::Attribute',
12         description => "repeatable not set for attribute type and tried to add a new attribute for the same code"
13     },
14     'Koha::Exceptions::Patron::Attribute::UniqueIDConstraint' => {
15         isa => 'Koha::Exceptions::Patron::Attribute',
16         description => "unique_id set for attribute type and tried to add a new with the same code and value"
17     }
18 );
19
20 1;