@nats-io/nats-core
    Preparing search index...

    Class InvalidOperationError

    InvalidOperationError is a custom error class that extends the standard Error object. It represents an error that occurs when an invalid operation is attempted on one of objects returned by the API. For example, trying to iterate on an object that was configured with a callback.

    InvalidOperationError

    The error message that explains the reason for the error.

    Optional parameter to provide additional error options.

    Hierarchy

    • Error
      • InvalidOperationError
    Index

    Constructors

    • Parameters

      • message: string
      • Optionaloptions: ErrorOptions

      Returns InvalidOperationError

    Properties

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

    Optional override for formatting stack traces

    stackTraceLimit: number

    Methods

    • Create .stack property on a target object

      Parameters

      • targetObject: object
      • OptionalconstructorOpt: Function

      Returns void