OliveTin PHP bindings
Loading...
Searching...
No Matches
OliveTin::Api::OliveTinApiException Class Reference
Inheritance diagram for OliveTin::Api::OliveTinApiException:

Public Member Functions

 __construct (string $message, private readonly int $httpStatus, private readonly ?string $connectCode=null, ?\Throwable $previous=null,)
 
 httpStatus ()
 
 connectCode ()
 

Static Public Member Functions

static fromHttpResponse (int $httpStatus, ?array $decoded, string $rawBody)
 

Detailed Description

Thrown when OliveTin returns a non-success HTTP status or malformed JSON.

Member Function Documentation

◆ fromHttpResponse()

static OliveTin::Api::OliveTinApiException::fromHttpResponse ( int $httpStatus,
?array $decoded,
string $rawBody )
static
Parameters
array<string,mixed>|null$decoded

The documentation for this class was generated from the following file: