| 1 | package WWW::Keycloak::Error; | ||
| 2 | |||
| 3 | # ABSTRACT: Exception base class for WWW::Keycloak | ||
| 4 | |||
| 5 | 7 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | # No namespace::autoclean here: it would remove the overload stub. | ||
| 8 | 7 | ▶ | use overload '""' => sub { $_[0]->message }, fallback => 1; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 7 | our $VERSION = '0.001'; | |
| 11 | |||
| 12 | |||
| 13 | 7 | has message => ( | |
| 14 | is => 'ro', | ||
| 15 | required => 1 | ||
| 16 | ); | ||
| 17 | |||
| 18 | |||
| 19 | 55 | ▶ | sub throw { |
|
Subroutine
throw: called CC=1 SCAR=0.0
Pod
documented
| |||
| 20 | 55 | my ( $class, %arg ) = @_; | |
| 21 | 55 | die $class->new(%arg); | |
| 22 | } | ||
| 23 | |||
| 24 | |||
| 25 | 7 | 1; | |
| 26 | |||
| 27 | __END__ | ||