Tomas Cohen Arazi
b77739ebc7
We shouldn't have it overloaded on the base class, as it could get huge and difficult to find things, and read. This patch moves things to Koha::Exceptions::Object. We should overload the full_message method on each exceptions class, as needed. To test: - Run: $ kshell k$ prove t/Koha/Exceptions.t => SUCCESS: Tests still pass! - Sign off :-D Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
12 lines
242 B
Perl
12 lines
242 B
Perl
package Koha::Exceptions::Exception;
|
|
|
|
use Modern::Perl;
|
|
|
|
# Looks like this class should be more Koha::Exception::Base;
|
|
use Exception::Class (
|
|
'Koha::Exceptions::Exception' => {
|
|
description => "Something went wrong!"
|
|
},
|
|
);
|
|
|
|
1;
|