PHPAPI reference
Exceptions
Exceptions in the PHP SDK.
// access
catch (ApiException $e)| Symbol | Kind | Summary |
|---|---|---|
NexusException | class | Base class for every exception thrown by the Nexus SDK. |
ApiException | class | A non-2xx response from the Nexus API. |
TransportException | class | A network/transport-level failure (DNS, connection, TLS, timeout). |
NexusException
classclass Inverge\Nexus\Exception\NexusExceptionBase class for every exception thrown by the Nexus SDK. */
View sourceApiException
classclass Inverge\Nexus\Exception\ApiExceptionA non-2xx response from the Nexus API. */
View source__construct
constructorfunction __construct(string $message, int $status, ?string $errorCode = NULL, ?array $details = NULL)Parameters
Prop
Type
fromResponse()
static methodstatic function fromResponse(Inverge\Nexus\Http\ApiResponse $response): selfParameters
Prop
Type
Returns self
TransportException
classclass Inverge\Nexus\Exception\TransportExceptionA network/transport-level failure (DNS, connection, TLS, timeout). */
View source