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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Sun, 15 Jul 2018 20:44:11 +0000 (21:44 +0100)
commitca4a096e03179d8ececd19e6bc6bd75d0eaf6631
treed2069e53946941371af468e53c5f9e16867181b8
parent220a9adea9891c62cb3fcff33bc08bbc1cd2e89f
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>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Exceptions/Exception.pm
Koha/Exceptions/Object.pm