class CSException extends Exception

CSException CSException Class is used to wrap the REST API error

Properties

$error_message
$error_code
$http_code

Methods

__construct(string $error, Stack $http_code = 412)

CSException Class to initalize your ContentType

HttpCode|string
getStatusCode()

To get http status_code of the current exception

error|array
getErrors()

Returns error details of current exception

Details

at line 42
__construct(string $error, Stack $http_code = 412)

CSException Class to initalize your ContentType

Parameters

string $error
  • Error message
Stack $http_code
  • Erro code

at line 71
HttpCode|string getStatusCode()

To get http status_code of the current exception

Return Value

HttpCode|string

at line 81
error|array getErrors()

Returns error details of current exception

Return Value

error|array