Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OnmsError

Represents an OpenNMS.js error. This will eventually have custom stuff to do... stuff.

Hierarchy

  • OnmsError

Index

Constructors

Properties

Methods

Constructors

constructor

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

    constructor

    Parameters

    • message: string

      The error message.

    • Optional code: number

      An optional error code to associate with the error.

    Returns OnmsError

Properties

code

code: number

The error code associated with this error.

Private error

error: Error

The JS Error class associated with this error.

message

message: string

The error message.

stack

stack: any

The stack trace when this error is created.

Methods

toString

  • toString(): string
  • Returns a string representation of this error.

    Returns string

Generated using TypeDoc