Class Base, manages errors in MDF Systems

Hierarchy (View Summary)

Constructors

Properties

Accessors

Methods

Constructors

  • Create a new Base error

    Parameters

    • message: string

      human friendly error message

    • Optionaluuid: string | BaseOptions

      unique identifier for this particular occurrence of the problem

    • Optionaloptions: BaseOptions

      enhanced error options

    Returns Base

Properties

date: Date

Error date

name: string = 'BaseError'

Error name (type)

subject: string

Error subject, 'common' as default

Accessors

  • get info(): undefined | Record<string, unknown>
  • Return the info object for this error

    Returns undefined | Record<string, unknown>

  • get uuid(): string
  • Return the unique identifier associated to this instance

    Returns string

Methods

  • Return a string formatted as name:message

    Returns string