X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FX.pm;h=c3533e2efb7fe72ba24788517660e701175e402c;hb=ecc3f8bc2af5b6f64ddf3a58967f3cb2cbac3977;hp=b8ae60ac632d36d45975c46c691ae026cb8a6c6a;hpb=333003d332756c5f53a33720aea7b714dfd335c8;p=kivitendo-erp.git diff --git a/SL/X.pm b/SL/X.pm index b8ae60ac6..c3533e2ef 100644 --- a/SL/X.pm +++ b/SL/X.pm @@ -22,7 +22,7 @@ use Exception::Class ( 'SL::X::DBRoseError' => { isa => 'SL::X::DBError', fields => [ qw(class metaobject object) ], - defaults => { error_template => [ '\'%s\' in object of type \'%s\' occured', qw(db_error class) ] }, + defaults => { error_template => [ '\'%s\' in object of type \'%s\' occurred', qw(db_error class) ] }, }, 'SL::X::DBUtilsError' => { isa => 'SL::X::DBError', @@ -30,6 +30,16 @@ use Exception::Class ( 'SL::X::ZUGFeRDValidation' => { isa => 'SL::X::Base', }, + 'SL::X::Inventory' => { + isa => 'SL::X::Base', + fields => [ qw(msg error) ], + defaults => { error_template => [ '%s: %s', qw(msg) ] }, + }, + 'SL::X::Inventory::Allocation' => { + isa => 'SL::X::Base', + fields => [ qw(msg error) ], + defaults => { error_template => [ '%s: %s', qw(msg) ] }, + }, ); 1;