Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Erric

Index

Constructors

constructor

  • new Erric(code?: undefined | string, messageForHumans?: undefined | string, metadata?: any): Erric
  • Parameters

    • Optional code: undefined | string
    • Optional messageForHumans: undefined | string
    • Optional metadata: any

    Returns Erric

Properties

code

code: string

messageForHumans

messageForHumans: string

metadata

metadata: any

uglyMode

uglyMode: boolean = false

useColors

useColors: boolean = true

Accessors

message

message:

Methods

alert

disableColors

  • disableColors(): void

enableUglyMode

  • enableUglyMode(): void

err

  • err(): void

error

  • error(): void

log

  • log(): void

setCode

  • setCode(str: string): void
  • Parameters

    • str: string

    Returns void

setMessageForHumans

  • setMessageForHumans(str: string): void
  • Parameters

    • str: string

    Returns void

setMetadata

  • setMetadata(metadata: object): void
  • Parameters

    • metadata: object

    Returns void

setUglyMode

  • setUglyMode(uglyMode: boolean): void
  • Parameters

    • uglyMode: boolean

    Returns void

setUseColors

  • setUseColors(useColors: boolean): void
  • Parameters

    • useColors: boolean

    Returns void

stringify

  • stringify(ugly?: undefined | true | false): string
  • Parameters

    • Optional ugly: undefined | true | false

    Returns string

throw

  • throw(ugly?: undefined | true | false): void
  • Parameters

    • Optional ugly: undefined | true | false

    Returns void

warn

  • warn(): void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc