We need a base exceptions class for metadata objects. To be used in 22144
Created attachment 84335 [details] [review] 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>
Created attachment 84347 [details] [review] 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>
Created attachment 84349 [details] [review] 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>
Awesome work all! Pushed to master for 19.05
Enhancement, will not be backported to 18.11.x series.