src/Common/RestApiClient.php
public function handleValidationException($endpoint, $response, $method, $path, $options)
    {
        $errors = $response['error']['fields'];
        throw new ValidationException($errors, $endpoint);
    }
public function handleValidationException($endpoint, $response, $method, $path, $options)
    {
        $errors = $response['error']['fields'];
        throw new ValidationException($errors, $endpoint);
    }
public function handleValidationException ( $ endpoint , $ response , $ method , $ path , $ options ) { $ errors = $ response [ 'error' ] [ 'fields' ] ; throw new ValidationException ( $ errors , $ endpoint ) ; }
Handle validation exceptions.

@param string $endpoint - The human-readable route that triggered the error.
@param array $response - The body of the response.
@param string $method - The HTTP method for the request that triggered the error, for optionally resending.
@param string $path - The path for the request that triggered the error, for optionally resending.
@param array $options - The options for the request that triggered the error, for optionally resending.
@return \GuzzleHttp\Psr7\Response|void
@throws UnauthorizedException
Handle validation exceptions .