Bug 17494: (QA followup) Fix exception name
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 4 Nov 2016 15:18:57 +0000 (12:18 -0300)
committerJulian Maurice <julian.maurice@biblibre.com>
Mon, 19 Dec 2016 10:35:58 +0000 (11:35 +0100)
commitf508096d926d2e09b26f462ad8d5ff9a52af0ec8
tree24bc180ad4c49fb6b3a5b6a7703efdad1ff9b638
parent8156e86a3050773b1e9741650a93a3b5773bb810
Bug 17494: (QA followup) Fix exception name

This patch changes the exception name to match the package name. And
also adds a test for the thrown exception message.

Also creates a general Koha::Exception::Patron::Modification exception
to make the new one inherit from it, following the common use in the codebase.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Mason James <mtj@kohaaloha.com>
(cherry picked from commit 9a301836714924581b806cd7c728695625ddf3cc)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Koha/AudioAlert.pm
Koha/Exceptions/Patron/Modification.pm
t/db_dependent/Koha_borrower_modifications.t