PHP Class Zendesk\API\Exceptions\ApiResponseException

Inheritance: extends Exception
Show file Open project: zendesk/zendesk_api_client_php Class Usage Examples

Protected Properties

Property Type Description
$errorDetails array

Public Methods

Method Description
__construct ( RequestException $e )
getErrorDetails ( ) : array Returns an array of error fields with descriptions.

Method Details

__construct() public method

public __construct ( RequestException $e )
$e GuzzleHttp\Exception\RequestException

getErrorDetails() public method

{ "email": [{ "description": "Email: [email protected] is already being used by another user", "error": "DuplicateValue" }], "external_id":[{ "description": "External has already been taken", "error": "DuplicateValue" }] }
public getErrorDetails ( ) : array
return array

Property Details

$errorDetails protected property

protected array $errorDetails
return array