Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Graceful<T>

Type parameters

  • T

Hierarchy

  • Graceful

Index

Constructors

constructor

  • Parameters

    Returns Graceful

Methods

execute

  • execute<T1>(functionToCallGracefully: (arg1: T1, ...args: any[]) => T): (Anonymous function)
  • Type parameters

    • T1

    Parameters

    • functionToCallGracefully: (arg1: T1, ...args: any[]) => T
        • (arg1: T1, ...args: any[]): T
        • Parameters

          • arg1: T1
          • Rest ...args: any[]

          Returns T

    Returns (Anonymous function)

setErrorMessage

  • setErrorMessage(message: string): this
  • Parameters

    • message: string

    Returns this

setFailureReturn

  • setFailureReturn(failureReturn: T): this
  • Parameters

    • failureReturn: T

    Returns this

setSources

  • setSources(...sources: Array<LogSource | string>): this
  • Parameters

    Returns this

Generated using TypeDoc