X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/1df2efffbb760f0c7ad5e32e40807beadc227b80..c0f873c1ffccfd565995500b459d53bba394c04d:/SL/X.pm diff --git a/SL/X.pm b/SL/X.pm index 0f206949b..4ecfc7dfa 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', [ '%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;