@modelcontextprotocol/sdk
    Preparing search index...

    Base class for all OAuth errors

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • errorCode: string
      • message: string
      • OptionalerrorUri: string

      Returns OAuthError

    Properties

    errorCode: string
    errorUri?: string
    message: string
    name: string
    stack?: string
    prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

    Optional override for formatting stack traces

    stackTraceLimit: number

    Methods

    • Converts the error to a standard OAuth error response object

      Returns { error: string; error_description?: string; error_uri?: string }

    • Create .stack property on a target object

      Parameters

      • targetObject: object
      • OptionalconstructorOpt: Function

      Returns void