MCP PHP SDK

InvalidInputMessageException extends InvalidArgumentException

Tags
author

Tobias Nyholm tobias.nyholm@gmail.com

Table of Contents

Properties

$invalidParamsMethod  : string|null
$requestId  : string|int|null

Methods

forInvalidParams()  : self
The message is a well-formed request whose params do not fit its method.
getRequestId()  : string|int|null
isInvalidParams()  : bool
isInvalidParamsOf()  : bool
setRequestId()  : self

Properties

Methods

forInvalidParams()

The message is a well-formed request whose params do not fit its method.

public static forInvalidParams(string $message, string $method[, Throwable|null $previous = null ]) : self
Parameters
$message : string
$method : string
$previous : Throwable|null = null
Return values
self

setRequestId()

public setRequestId(string|int|null $requestId) : self
Parameters
$requestId : string|int|null
Return values
self
On this page

Search results