X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FX.pm;h=6da12dcfd52fcbc23a77b5274b49b82d59620083;hb=76a39ab4f52c7f25d18bb7dc714262ac8d400720;hp=552e5ef29a0e3976f4f58a6dc5227d2a0cd51469;hpb=a23454bb1b039a31b7f77710ff663fa9152d530c;p=kivitendo-erp.git diff --git a/SL/X.pm b/SL/X.pm index 552e5ef29..6da12dcfd 100644 --- a/SL/X.pm +++ b/SL/X.pm @@ -5,6 +5,9 @@ use strict; use Exception::Lite qw(declareExceptionClass); declareExceptionClass('SL::X::FormError'); -declareExceptionClass('SL::X::DBHookError', [ '%s hook \'%s\' for object type \'%s\' failed', qw(when hook object_type object) ]); +declareExceptionClass('SL::X::DBError', [ '%s', qw(error) ]); +declareExceptionClass('SL::X::DBHookError', 'SL::X::DBError', [ '%s hook \'%s\' for object type \'%s\' failed', qw(when hook object_type object) ]); +declareExceptionClass('SL::X::DBRoseError', 'SL::X::DBError', [ '\'%s\' in object of type \'%s\' occured', qw(error class) ]); +declareExceptionClass('SL::X::DBUtilsError', 'SL::X::DBError', [ '%s: %s', qw(msg error) ]); 1;