ValidationException
extends ApiException
in package
Class ValidationException
Tags
Table of Contents
Methods
- __construct() : mixed
- ApiException constructor.
- __toString() : string
- API exception must implement valid __toString() method.
- getErrorResponse() : ErrorResponse
- Returns ErrorResponse.
- getStatusCode() : int
- Returns response status code
Methods
__construct()
ApiException constructor.
public
__construct(ResponseInterface $errorResponse[, int $statusCode = 0 ][, Throwable|null $previous = null ]) : mixed
Parameters
- $errorResponse : ResponseInterface
- $statusCode : int = 0
- $previous : Throwable|null = null
__toString()
API exception must implement valid __toString() method.
public
__toString() : string
Return values
stringgetErrorResponse()
Returns ErrorResponse.
public
getErrorResponse() : ErrorResponse
Return values
ErrorResponsegetStatusCode()
Returns response status code
public
getStatusCode() : int