InvergeDocs
PHPAPI reference

Exceptions

Exceptions in the PHP SDK.

// access
catch (ApiException $e)
SymbolKindSummary
NexusExceptionclassBase class for every exception thrown by the Nexus SDK.
ApiExceptionclassA non-2xx response from the Nexus API.
TransportExceptionclassA network/transport-level failure (DNS, connection, TLS, timeout).

NexusException

class
class Inverge\Nexus\Exception\NexusException

Base class for every exception thrown by the Nexus SDK. */

View source

ApiException

class
class Inverge\Nexus\Exception\ApiException

A non-2xx response from the Nexus API. */

View source

__construct

constructor
function __construct(string $message, int $status, ?string $errorCode = NULL, ?array $details = NULL)

Parameters

Prop

Type

View source

fromResponse()

static method
static function fromResponse(Inverge\Nexus\Http\ApiResponse $response): self

Parameters

Prop

Type

Returns self

View source

TransportException

class
class Inverge\Nexus\Exception\TransportException

A network/transport-level failure (DNS, connection, TLS, timeout). */

View source

On this page