use Modern::Perl;
+use Koha::Exception;
+
use Exception::Class (
- 'Koha::Exceptions::Library' => {
- description => 'Something went wrong!',
+ 'Koha::Exceptions::Library::Exception' => {
+ isa => 'Koha::Exception',
},
- 'Koha::Exceptions::Library::BranchcodeNotFound' => {
- isa => 'Koha::Exceptions::Library',
- description => "Library does not exist",
- fields => ["branchcode"],
+
+ 'Koha::Exceptions::Library::NotFound' => {
+ isa => 'Koha::Exceptions::Library::Exception',
+ description => 'Library not found',
},
);