src/Client/Commands/Responses/Response.php
public function errorMessage()
	{
		if ($this->decoded() === null) {
			throw new \RuntimeException('No result from server.');
		}

		$decoded = $this->decoded();
		if (isset($decoded->error))
			return sprintf('%s (%s)', $decoded->error->message, $decoded->error->code);

		$message = sprintf('%s (%s)', $decoded->message, $this->statusCode());

		if (isset($this->decoded()->errors)) {
			$errors = $this->decoded()->errors;

			$message .= $this->resolveAttributes($errors);
		}

		return $message;
	}
public function errorMessage()
	{
		if ($this->decoded() === null) {
			throw new \RuntimeException('No result from server.');
		}

		$decoded = $this->decoded();
		if (isset($decoded->error))
			return sprintf('%s (%s)', $decoded->error->message, $decoded->error->code);

		$message = sprintf('%s (%s)', $decoded->message, $this->statusCode());

		if (isset($this->decoded()->errors)) {
			$errors = $this->decoded()->errors;

			$message .= $this->resolveAttributes($errors);
		}

		return $message;
	}
public function errorMessage ( ) { if ( $ this -> decoded ( ) === null ) { throw new \ RuntimeException ( 'No result from server.' ) ; } $ decoded = $ this -> decoded ( ) ; if ( isset ( $ decoded -> error ) ) return sprintf ( '%s (%s)' , $ decoded -> error -> message , $ decoded -> error -> code ) ; $ message = sprintf ( '%s (%s)' , $ decoded -> message , $ this -> statusCode ( ) ) ; if ( isset ( $ this -> decoded ( ) -> errors ) ) { $ errors = $ this -> decoded ( ) -> errors ; $ message .= $ this -> resolveAttributes ( $ errors ) ; } return $ message ; }
returns the error message

@return string
returns the error message