MCP PHP SDK

ErrorEvent

FinalYes

Event dispatched when an error occurs during request processing.

Listeners can modify the error before it's sent to the client.

Tags
author

Edouard Courty edouard.courty2@gmail.com

Table of Contents

Properties

$error  : Error
$request  : Request
$session  : SessionInterface
$throwable  : Throwable|null

Methods

__construct()  : mixed
getError()  : Error
getRequest()  : Request
getSession()  : SessionInterface
getThrowable()  : Throwable|null
setError()  : void

Properties

$throwable read-only

private Throwable|null $throwable

Methods

getThrowable()

public getThrowable() : Throwable|null
Return values
Throwable|null

        
On this page

Search results