Stone.js API
    Preparing search index...

    Raised when a message cannot be answered at the protocol level.

    Deliberately rare. A malformed envelope, an unknown method, arguments that are not an object: the cases where there is no result to speak of. Everything a tool itself does wrong travels back as a result, not as one of these.

    Hierarchy

    • IntegrationError
      • McpError
    Index
    cause?: Error
    code?: string
    jsonRpcCode: number
    metadata?: unknown
    • Converts the error to a formatted string representation.

      Parameters

      • Optionalmultiline: boolean

        Determine if output value must be multiline or not.

      Returns string

      A formatted error string.

    • Create a RuntimeError.

      Type Parameters

      • T extends RuntimeError = RuntimeError

      Parameters

      • message: string
      • Optionaloptions: ErrorOptions

        The options to create a RuntimeError.

      Returns T

      A new RuntimeError instance.