If the tryer
function has no params, then they are optional.
Parameter type for the tryer
function.
Return type for the tryer
function.
Function to run inside the try {}.
Depth level for output to the console.
Instance used to log messages and debugging info.
Instance used to work with paths and files.
Optional
params: NoInfer<T_Params>Parameters passed to the tryer function, if any.
Optional
callback: Used to handle the error. Note: if the callback does not throw or exit, the caught error is re-thrown.
The tryer
function’s return.
If the tryer
function has params, then they are required.
Optional
callback:
Runs a function, with parameters as applicable, and catches (& handles) anything thrown.
Overloaded for better param typing.
Throws
Any errors thrown in the
tryer
function.Since
0.1.0-alpha