Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 6bdcd838

Von Moritz Bunkus vor etwa 5 Jahren hinzugefügt

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

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

Unterschiede anzeigen:

SL/DB/Object/Hooks.pm
44 44

  
45 45
  foreach my $sub (@{ ( $hooks{$when} || { })->{ ref($object) } || [ ] }) {
46 46
    my $result = ref($sub) eq 'CODE' ? $sub->($object, @args) : $object->call_sub($sub, @args);
47
    die SL::X::DBHookError->new(when        => $when,
48
                                hook        => (ref($sub) eq 'CODE' ? '<anonymous sub>' : $sub),
49
                                object      => $object,
50
                                object_type => ref($object))
47
    SL::X::DBHookError->throw(when        => $when,
48
                              hook        => (ref($sub) eq 'CODE' ? '<anonymous sub>' : $sub),
49
                              object      => $object,
50
                              object_type => ref($object))
51 51
      if !$result;
52 52
  }
53 53
}

Auch abrufbar als: Unified diff