Options
All
  • Public
  • Public/Protected
  • All
Menu

A listener for all HackerAPI errors

Hierarchy

  • GlobalListener

Index

Constructors

Properties

Methods

Constructors

constructor

  • new GlobalListener(callback: Function, whitelist?: undefined, blacklist?: undefined): GlobalListener

Properties

Optional blacklist

blacklist: number[]

callback

callback: Function

Optional whitelist

whitelist: number[]

Methods

fire

  • fire(error: Error): void
  • For an error to fire it must meet at least one criterion

    1. If whitelist is defined then it's error type must be in it
    2. If blacklist is defined then it's error type cannot be in it

    Parameters

    Returns void

Generated using TypeDoc