| 1 | package SyForm::Exception; | ||
| 2 | 7 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 7 | $SyForm::Exception::AUTHORITY = 'cpan:GETTY'; | |
| 4 | } | ||
| 5 | # ABSTRACT: SyForm base exception class | ||
| 6 | 7 | $SyForm::Exception::VERSION = '0.103'; | |
| 7 | 7 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 7 | extends 'Throwable::Error'; | |
| 9 | |||
| 10 | 0 | ▶ | around throw => sub { |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 11 | 0 | my ( $orig, $class, $message, %args ) = @_; | |
| 12 | 0 | $class->$orig({ | |
| 13 | message => "\n".'[SyForm Exception] '.$message, %args | ||
| 14 | }); | ||
| 15 | 7 | }; | |
| 16 | |||
| 17 | 0 | ▶ | sub throw_with_args { |
|
Subroutine
throw_with_args: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 18 | 0 | my ( $class, $message ) = @_; | |
| 19 | 0 | $class->throw($message); | |
| 20 | } | ||
| 21 | |||
| 22 | 7 | 1; | |
| 23 | |||
| 24 | __END__ | ||