Bug 20590: Include Koha::Exceptions::Exception

This patch makes Koha::Exceptions::Object include
Koha::Exceptions::Exception so it is not required to include it
excplicitly for using this exceptions.

To test:
- Run:
  $ kshell
 $k prove t/Koha/Exceptions.t
=> FAIL: Tests fail because Koha::Exceptions::Exception is not
(implicitly or explicitly included)
- Apply this patch
- Run
 k$ prove t/Koha/Exceptions.t
=> SUCCESS: Tests pass!

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Tomas Cohen Arazi 2018-04-19 11:13:06 -03:00 committed by Jonathan Druart
parent 681a25f802
commit e6f729cfa0
1 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,8 @@ package Koha::Exceptions::Object;
use Modern::Perl;
use Koha::Exceptions::Exception;
use Exception::Class (
'Koha::Exceptions::Object' => {
isa => 'Koha::Exceptions::Exception',