Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 6bdcd838

Von Moritz Bunkus vor mehr als 6 Jahren hinzugefügt

  • ID 6bdcd83826c0cf1d86450bc205c00864d8a0c403
  • Vorgänger 1d540b8d
  • Nachfolger 61a426f1

Module: Exception::Lite durch Exception::Class ersetzt

Unterschiede anzeigen:

SL/DB/Object/Hooks.pm
foreach my $sub (@{ ( $hooks{$when} || { })->{ ref($object) } || [ ] }) {
my $result = ref($sub) eq 'CODE' ? $sub->($object, @args) : $object->call_sub($sub, @args);
die SL::X::DBHookError->new(when => $when,
hook => (ref($sub) eq 'CODE' ? '<anonymous sub>' : $sub),
object => $object,
object_type => ref($object))
SL::X::DBHookError->throw(when => $when,
hook => (ref($sub) eq 'CODE' ? '<anonymous sub>' : $sub),
object => $object,
object_type => ref($object))
if !$result;
}
}

Auch abrufbar als: Unified diff