Bug 21022: (follow-up) Move overloaded full_message method to subclass
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 29 Jun 2018 14:15:22 +0000 (11:15 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 13 Jul 2018 13:25:15 +0000 (13:25 +0000)
commitb77739ebc739b3c4fba169ac8e05eb263495f7ec
treeda25860637e1aca76e44777196c4f3ccea782075
parent07c6699a7bd4204d002f135bfeddf33fcc831b54
Bug 21022: (follow-up) Move overloaded full_message method to subclass

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>
Koha/Exceptions/Exception.pm
Koha/Exceptions/Object.pm