Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents an OpenNMS.js error.

Hierarchy

  • Error
    • OnmsError

Index

Constructors

  • new OnmsError(message: string, code?: number, options?: any, data?: any): API.OnmsError
  • Create a new error.

    Parameters

    • message: string

      The error message.

    • Optional code: number

      An optional error code to associate with the error.

    • Optional options: any
    • Optional data: any

    Returns API.OnmsError

Properties

data: any

The data (payload) associated with a response.

message: string
name: string
options: any

The options provided as part of the request that resulted in this erro.

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

Type declaration

stackTraceLimit: number

Accessors

  • get code(): number

Methods

  • toString(): string
  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc