@agorio/sdkDocs


Class: McpError

Extends

  • Error

Constructors

new McpError()

new McpError(code, message, data?): McpError

Parameters

code: number

message: string

data?: unknown

Returns

McpError

Overrides

Error.constructor

Defined in

src/client/mcp-client.ts:297

Properties

cause?

optional cause: unknown

Inherited from

Error.cause

Defined in

docs/node_modules/typescript/lib/lib.es2022.error.d.ts:24


code

readonly code: number

Defined in

src/client/mcp-client.ts:298


data?

readonly optional data: unknown

Defined in

src/client/mcp-client.ts:300


message

message: string

Inherited from

Error.message

Defined in

docs/node_modules/typescript/lib/lib.es5.d.ts:1077


name

name: string

Inherited from

Error.name

Defined in

docs/node_modules/typescript/lib/lib.es5.d.ts:1076


stack?

optional stack: string

Inherited from

Error.stack

Defined in

docs/node_modules/typescript/lib/lib.es5.d.ts:1078