MPDException is a slightly modified version of a standard Exception.
You may call MPDException::getCode
and MPDException::getMessage
to retrieve information about the error.
In case an error occurs at the protocol level the called methods simply return false.
To retrieve the last occurred error call MphpD::get_last_error.
MphpD::get_last_error() : array
MPDException::__construct( $message = '', $code = 0, ?Throwable $previous = null, string $command = '', int $commandlist_num = 0) : mixed
mixed
Returns all information as string
MPDException::__toString() : string
string
string
Returns the command which caused the error.
MPDException::getCommand() : string
string
string
Returns the command's list-number in case a commandlist was used.
MPDException::getCommandlistNum() : int
int
int
MPDException::__wakeup() : mixed
mixed
MPDException::getMessage() : string
string
MPDException::getCode() : mixed
mixed
MPDException::getFile() : string
string
MPDException::getLine() : int
int
MPDException::getTrace() : array
array
MPDException::getPrevious() : Throwable
Throwable
MPDException::getTraceAsString() : string
string