src/Exception/MailjetException.php
private function setErrorFromResponse(Response $response)
    {
        $this->statusCode = $response->getStatus();
        $body = $response->getBody();
        if (isset($body['ErrorInfo'])) {
            $this->errorInfo = $body['ErrorInfo'];
        }
        if (isset($body['ErrorMessage'])) {
            $this->errorMessage = $body['ErrorMessage'];
        }
        if (isset($body['ErrorIdentifier'])) {
            $this->errorIdentifier = $body['ErrorIdentifier'];
        }
    }
private function setErrorFromResponse(Response $response)
    {
        $this->statusCode = $response->getStatus();
        $body = $response->getBody();
        if (isset($body['ErrorInfo'])) {
            $this->errorInfo = $body['ErrorInfo'];
        }
        if (isset($body['ErrorMessage'])) {
            $this->errorMessage = $body['ErrorMessage'];
        }
        if (isset($body['ErrorIdentifier'])) {
            $this->errorIdentifier = $body['ErrorIdentifier'];
        }
    }
private function setErrorFromResponse ( Response $ response ) { $ this -> statusCode = $ response -> getStatus ( ) ; $ body = $ response -> getBody ( ) ; if ( isset ( $ body [ 'ErrorInfo' ] ) ) { $ this -> errorInfo = $ body [ 'ErrorInfo' ] ; } if ( isset ( $ body [ 'ErrorMessage' ] ) ) { $ this -> errorMessage = $ body [ 'ErrorMessage' ] ; } if ( isset ( $ body [ 'ErrorIdentifier' ] ) ) { $ this -> errorIdentifier = $ body [ 'ErrorIdentifier' ] ; } }
Configure MailjetException from Mailjet\Response
@method setErrorFromResponse
@param  Response $response
Configure MailjetException from Mailjet \ Response