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