Bug 17494: (QA followup) Fix exception name
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 4 Nov 2016 15:18:57 +0000 (12:18 -0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 4 Nov 2016 15:45:41 +0000 (15:45 +0000)
commit9427edc2f6ae268f2af65c21b6b7850b31f35358
tree8949c2722c554ef6696aa959f3538bcbffd96066
parentf6148ab777b2231cb047f54677d8d716954b062a
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: Kyle M Hall <kyle@bywatersolutions.com>
Koha/Exceptions/Patron/Modification.pm
Koha/Patron/Modification.pm
t/db_dependent/Koha_borrower_modifications.t