1 package Koha
::Exceptions
::Exception
;
5 # Looks like this class should be more Koha::Exception::Base;
7 'Koha::Exceptions::Exception' => {
8 description
=> "Something went wrong!"
12 # We want to overload it to have a stringification method for our exceptions
16 my $msg = $self->message;
18 if ( $self->isa('Koha::Exceptions::Object::FKConstraint') ) {
19 $msg = sprintf("Invalid parameter passed, %s=%s does not exist", $self->broken_fk, $self->value );