WorkOS PHP SDK

ServerException extends BaseRequestException
in package

Table of Contents

Properties

$error  : string|null
$errorCode  : string|null
$requestId  : string|null
$statusCode  : int|null

Methods

__construct()  : mixed
fromResponse()  : static

Properties

$errorCode read-only

public string|null $errorCode = null

$requestId read-only

public string|null $requestId = null

$statusCode read-only

public int|null $statusCode = null

Methods

__construct()

public __construct([string $message = '' ][, int|null $statusCode = null ][, string|null $requestId = null ][, Throwable|null $previous = null ][, string|null $errorCode = null ][, string|null $error = null ]) : mixed
Parameters
$message : string = ''
$statusCode : int|null = null
$requestId : string|null = null
$previous : Throwable|null = null
$errorCode : string|null = null
$error : string|null = null

fromResponse()

public static fromResponse(int $statusCode, array<string|int, mixed> $body[, string|null $requestId = null ]) : static
Parameters
$statusCode : int
$body : array<string|int, mixed>
$requestId : string|null = null
Return values
static

        
On this page

Search results