Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OnmsError

Hierarchy

  • OnmsError

Index

Constructors

Properties

Methods

Constructors

constructor

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

    constructor

    Parameters

    • message: string

      the message

    • Optional code: number

    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 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