Bug 22051: Add Koha::Exceptions::Object::WrongValue
commit58cbba3c93fba35920d3257a31dea9c760b37330
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 28 Dec 2018 14:33:13 +0000 (28 11:33 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 25 Jan 2019 20:43:46 +0000 (25 20:43 +0000)
treeaa880f9311e2a114de601b960d4249341a4e0c28
parentbf6abd5750f1028e3d7c07a26e48c1966f36e32b
Bug 22051: Add Koha::Exceptions::Object::WrongValue

This patch adds a new exception to be thrown in Koha::Object->store when
a DBIC exception is thrown regarding bad data format.

To test:
- Apply this patch
- Run:
  $ kshell
 k$ prove t/Koha/Exceptions.t
=> SUCCESS: Tests pass!
- Sign off :-D

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Charles Farmer <charles.farmer@inLibro.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/Exceptions/Object.pm
t/Koha/Exceptions.t