| 1 | package WWW::Keycloak::Error::API; | ||||||||||
| 2 | |||||||||||
| 3 | # ABSTRACT: Raised when Keycloak answers with an HTTP error | ||||||||||
| 4 | |||||||||||
| 5 | 7 | ▶ | use Moo; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 7 | extends 'WWW::Keycloak::Error'; | |||||||||
| 7 | |||||||||||
| 8 | 7 | our $VERSION = '0.001'; | |||||||||
| 9 | |||||||||||
| 10 | |||||||||||
| 11 | 7 | has http_status => ( | |||||||||
| 12 | is => 'ro', | ||||||||||
| 13 | required => 1 | ||||||||||
| 14 | ); | ||||||||||
| 15 | |||||||||||
| 16 | |||||||||||
| 17 | 7 | has api_message => ( is => 'ro' ); | |||||||||
| 18 | |||||||||||
| 19 | |||||||||||
| 20 | 7 | has oauth_error => ( is => 'ro' ); | |||||||||
| 21 | |||||||||||
| 22 | |||||||||||
| 23 | 4 | ▶ | sub is_not_found { $_[0]->http_status == 404 ? 1 : 0 } | ||||||||
|
Subroutine
is_not_found: called CC=2 SCAR=6.9
Pod
documented
Branch: 1 branch
| |||||||||||
| 24 | 3 | ▶ | sub is_conflict { $_[0]->http_status == 409 ? 1 : 0 } | ||||||||
|
Subroutine
is_conflict: called CC=2 SCAR=7.6
Pod
documented
Branch: 1 branch
| |||||||||||
| 25 | 11 | ▶ | sub is_unauthorized { $_[0]->http_status == 401 ? 1 : 0 } | ||||||||
|
Subroutine
is_unauthorized: called CC=2 SCAR=6.9
Pod
documented
Branch: 1 branch
| |||||||||||
| 26 | |||||||||||
| 27 | |||||||||||
| 28 | 7 | 1; | |||||||||
| 29 | |||||||||||
| 30 | __END__ | ||||||||||