| 1 | package JSON::WebToken::Exception; | ||
| 2 | |||
| 3 | 8 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 8 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | use overload ( | ||
| 6 | 8 | q|""| => \&to_string, | |
| 7 | 8 | ▶ | ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 8 | ▶ | use Carp qw/croak/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | sub throw { | ||
| 12 | 12 | ▶ | my ($class, %args) = @_; |
|
Subroutine
throw: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 13 | 12 | my $self = bless \%args, $class; | |
| 14 | 12 | croak $self; | |
| 15 | } | ||
| 16 | |||
| 17 | 12 | ▶ | sub code { $_[0]->{code} } |
|
Subroutine
code: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 18 | 12 | ▶ | sub message { $_[0]->{message} } |
|
Subroutine
message: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 19 | |||
| 20 | sub to_string { | ||
| 21 | 12 | ▶ | $_[0]->message; |
|
Subroutine
to_string: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 22 | } | ||
| 23 | |||
| 24 | 8 | 1; | |
| 25 | __END__ | ||