ExceptionParserInterface
in
Interface used to parse exceptions into an associative array of data
Table of Contents
Methods
- parse() : array<string|int, mixed>
- Parses an exception into an array of data containing at minimum the following array keys: - type: Exception type - code: Exception code - message: Exception message - request_id: Request ID - parsed: The parsed representation of the data (array, SimpleXMLElement, etc)
Methods
parse()
Parses an exception into an array of data containing at minimum the following array keys: - type: Exception type - code: Exception code - message: Exception message - request_id: Request ID - parsed: The parsed representation of the data (array, SimpleXMLElement, etc)
public
parse(RequestInterface $request, Response $response) : array<string|int, mixed>
Parameters
- $request : RequestInterface
- $response : Response
-
Unsuccessful response