| 1 | package OpenAI::API::Error; | ||||||||||
| 2 | |||||||||||
| 3 | 18 | ▶ | use Moo; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 18 | ▶ | use strictures 2; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 18 | ▶ | use namespace::clean; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 18 | extends 'Throwable::Error'; | |||||||||
| 8 | |||||||||||
| 9 | has request => ( | ||||||||||
| 10 | is => 'ro', | ||||||||||
| 11 | 4 | ▶ | isa => sub { ref $_[0] eq 'HTTP::Request' or die "expected HTTP::Request object" }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 12 | 18 | ); | |||||||||
| 13 | |||||||||||
| 14 | has response => ( | ||||||||||
| 15 | is => 'ro', | ||||||||||
| 16 | 4 | ▶ | isa => sub { ref $_[0] eq 'HTTP::Response' or die "expected HTTP::Response object" }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 17 | 18 | ); | |||||||||
| 18 | |||||||||||
| 19 | 18 | 1; | |||||||||
| 20 | |||||||||||
| 21 | __END__ | ||||||||||