Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OnmsError

Represents an OpenNMS.js error.

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

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

    constructor

    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 OnmsError

Properties

Private data

data: any

The data (payload) associated with a response.

Private options

options: any

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

Static Error

Error: ErrorConstructor

Static message

message: string

Static name

name: string

Static Optional stack

stack: string

Accessors

code

  • get code(): number

Methods

toString

  • toString(): string

Generated using TypeDoc