use SL::X::Base;
+
+# note! the default fields "message", "error" and "show_trace" are created by
+# Exception::Class if message or error are given, they are used for
+# stringification, so don't use them in error_templates
+#
use Exception::Class (
'SL::X::FormError' => {
isa => 'SL::X::Base',
'SL::X::ZUGFeRDValidation' => {
isa => 'SL::X::Base',
},
+ 'SL::X::Inventory' => {
+ isa => 'SL::X::Base',
+ fields => [ qw(code) ],
+ },
+ 'SL::X::Inventory::Allocation' => {
+ isa => 'SL::X::Base',
+ fields => [ qw(code) ],
+ },
);
1;