34 lines
586 B
Perl
34 lines
586 B
Perl
package Koha::Exceptions::REST;
|
|
|
|
use Modern::Perl;
|
|
|
|
use Koha::Exception;
|
|
|
|
use Exception::Class (
|
|
'Koha::Exceptions::REST' => {
|
|
isa => 'Koha::Exception',
|
|
},
|
|
'Koha::Exceptions::REST::Query::InvalidOperator' => {
|
|
description => "Invalid operator found in query",
|
|
fields => ['operator']
|
|
},
|
|
);
|
|
|
|
=head1 NAME
|
|
|
|
Koha::Exceptions::REST - Base class for REST API exceptions
|
|
|
|
=head1 Exceptions
|
|
|
|
=head2 Koha::Exceptions::REST
|
|
|
|
Generic REST API exception.
|
|
|
|
=head2 Koha::Exceptions::REST::Query::InvalidOperator
|
|
|
|
The passed query is not allowed.
|
|
|
|
=cut
|
|
|
|
1;
|