Class OnmsError

Represents an OpenNMS.js error.

Hierarchy (view full)

Constructors

  • Create a new error.

    Parameters

    • message: string

      The error message.

    • Optionalcode: number

      An optional error code to associate with the error.

    • Optionaloptions: any
    • Optionaldata: any

    Returns OnmsError

Properties

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

Optional override for formatting stack traces

stackTraceLimit: number

Accessors

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void