@modelcontextprotocol/sdk
    Preparing search index...

    Class TooManyRequestsError

    Too many requests error - Rate limit exceeded. (Custom, non-standard error based on RFC 6585)

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

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

    Optional override for formatting stack traces

    stackTraceLimit: number

    Accessors

    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