]> git.koha-community.org Git - koha.git/commit
Bug 22194: Add Koha::Exceptions::Metadata
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 23 Jan 2019 16:10:14 +0000 (13:10 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 30 Jan 2019 11:46:28 +0000 (11:46 +0000)
commit78bba50d462880087a2c9539d3aff8c262267d10
treed73ed2738801befa62fc0b901cf2217ab1297023
parent5a4fcb471840ae17a0ae69fa52bbff6b27555425
Bug 22194: Add Koha::Exceptions::Metadata

This trivial patch adds a basic Koha::Exceptions::Metadata exception and
Koha::Exceptions::Metadata::Invalid for using when the data cannot be
decoded (maybe because of incompatibility between format, schema, or
just bad data).

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

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/Exceptions/Metadata.pm [new file with mode: 0644]
t/Koha/Exceptions.t