X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FX.pm;h=4ecfc7dfaaf2ba6a38d340e4bd67613d33494a27;hb=d4608fb4eff9392728d1287de4df3e865ebe7f6e;hp=ce7552c1e14eb3c3b47c3488b380d3ce8e16d8a6;hpb=66ddc388f22a78ff14f7705a0d3d601e81440e04;p=kivitendo-erp.git diff --git a/SL/X.pm b/SL/X.pm index ce7552c1e..4ecfc7dfa 100644 --- a/SL/X.pm +++ b/SL/X.pm @@ -5,5 +5,9 @@ use strict; use Exception::Lite qw(declareExceptionClass); declareExceptionClass('SL::X::FormError'); +declareExceptionClass('SL::X::DBError', [ '%s %s', qw(error msg) ]); +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;