public function getLastErrorMessage() {
        $last = $this->getLastErrorResponse();
        if (!empty($last['body'])) {
            $xml = simplexml_load_string($last['body']);
            if (isset($xml->Error->Message)) {
                return $xml->Error->Message;
            }
        }
    }
public function getLastErrorMessage() {
        $last = $this->getLastErrorResponse();
        if (!empty($last['body'])) {
            $xml = simplexml_load_string($last['body']);
            if (isset($xml->Error->Message)) {
                return $xml->Error->Message;
            }
        }
    }
public function getLastErrorMessage ( ) { $ last = $ this -> getLastErrorResponse ( ) ; if ( ! empty ( $ last [ 'body' ] ) ) { $ xml = simplexml_load_string ( $ last [ 'body' ] ) ; if ( isset ( $ xml -> Error -> Message ) ) { return $ xml -> Error -> Message ; } } }
Gives the error message from the last error response.
Not all error responses will have error messages.
This data can also be found in the XML body given by getLastErrorResponse.
@return string Amazon error code or <b>NULL</b> if not set yet or no error response yet
@see getLastErrorResponse
Gives the error message from the last error response . Not all error responses will have error messages . This data can also be found in the XML body given by getLastErrorResponse .