Constructors
constructor
- new Graceful<T>(...sources: string[]): Graceful<T>
-
Parameters
-
Rest
...sources: string[]
Methods
execute
- execute<T1>(functionToCallGracefully: ((arg1: T1, ...args: any[]) => T)): ((...args: any[]) => any)
-
Parameters
-
functionToCallGracefully: ((arg1: T1, ...args: any[]) => T)
-
- (arg1: T1, ...args: any[]): T
-
Parameters
-
arg1: T1
-
Rest
...args: any[]
Returns T
Returns ((...args: any[]) => any)
-
- (...args: any[]): any
-
Returns any
setErrorMessage
- setErrorMessage(message: string): Graceful<T>
-
setFailureReturn
- setFailureReturn(failureReturn: T): Graceful<T>
-
setSources
- setSources(...sources: string[]): Graceful<T>
-
Parameters
-
Rest
...sources: string[]