- isa => 'Koha::Exceptions::Exception',
- description => 'A required parameter is missing'
- },
- # Virtualshelves exceptions
- 'Koha::Exceptions::Virtualshelves::DuplicateObject' => {
- isa => 'Koha::Exceptions::DuplicateObject',
- description => "Duplicate shelf object",
- },
- 'Koha::Exceptions::Virtualshelves::InvalidInviteKey' => {
- isa => 'Koha::Exceptions::Exception',
- description => 'Invalid key on accepting the share',
- },
- 'Koha::Exceptions::Virtualshelves::InvalidKeyOnSharing' => {
- isa => 'Koha::Exceptions::Exception',
- description=> 'Invalid key on sharing a shelf',
- },
- 'Koha::Exceptions::Virtualshelves::ShareHasExpired' => {
- isa => 'Koha::Exceptions::Exception',
- description=> 'Cannot share this shelf, the share has expired',
- },
- 'Koha::Exceptions::Virtualshelves::UseDbAdminAccount' => {
- isa => 'Koha::Exceptions::Exception',
- description => "Invalid use of database administrator account",
- }
+ isa => 'Koha::Exception',
+ description => 'A required parameter is missing',
+ fields => ['parameter'],
+ },
+ 'Koha::Exceptions::ParameterTooHigh' => {
+ isa => 'Koha::Exception',
+ description => 'A passed parameter value is too high'
+ },
+ 'Koha::Exceptions::NoChanges' => {
+ isa => 'Koha::Exception',
+ description => 'No changes were made',
+ },
+ 'Koha::Exceptions::WrongParameter' => {
+ isa => 'Koha::Exception',
+ description => 'One or more parameters are wrong',
+ },
+ 'Koha::Exceptions::NoPermission' => {
+ isa => 'Koha::Exception',
+ description => 'You do not have permission for this action',
+ },
+ 'Koha::Exceptions::CannotAddLibraryLimit' => {
+ isa => 'Koha::Exception',
+ description => 'General problem adding a library limit'
+ },
+ 'Koha::Exceptions::UnderMaintenance' => {
+ isa => 'Koha::Exception',
+ description => 'Koha is under maintenance.'
+ },