X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FX.pm;h=51021215acca92b3bb5f95015486992ac4498c77;hb=3bed12835acd27f26ff501eb46cd741135cf24f8;hp=0f206949bb34f03e5f68f08e727985533c105bcd;hpb=3fdb26b1be0178d1a450405f6d1d3976c19b9587;p=kivitendo-erp.git diff --git a/SL/X.pm b/SL/X.pm index 0f206949b..51021215a 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\' failed', qw(when hook object) ]); +declareExceptionClass('SL::X::DBError'); +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;