Revision 6bdcd838
Von Moritz Bunkus vor etwa 5 Jahren hinzugefügt
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
Module: Exception::Lite durch Exception::Class ersetzt