Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 8620e29a

Von Sven Schöling vor etwa 8 Jahren hinzugefügt

  • ID 8620e29afe9f91efb66b4aac1267a0e90494f63b
  • Vorgänger 639381bf
  • Nachfolger 6aeb25c5

Datenbankexceptions: SL::X::DBError korrekt ausgeben

Unterschiede anzeigen:

SL/X.pm
use Exception::Lite qw(declareExceptionClass);
declareExceptionClass('SL::X::FormError');
declareExceptionClass('SL::X::DBError');
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) ]);

Auch abrufbar als: Unified diff