RequestException extends Exception
Exception for MCP request failures.
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- fromError() : self
- getError() : Error|null
Properties
$error
private
Error|null
$error
Methods
__construct()
public
__construct([string $message = '' ][, int $code = 0 ][, Throwable|null $previous = null ][, Error|null $error = null ]) : mixed
Parameters
- $message : string = ''
- $code : int = 0
- $previous : Throwable|null = null
- $error : Error|null = null
fromError()
public
static fromError(Error $error) : self
Parameters
- $error : Error
Return values
selfgetError()
public
getError() : Error|null