Global

Methods

ErrorFactory((message), (ErrorClass)) → {Error}

construct a custom error constructor and streamline the stack trace captured in the custom error

Source:
Parameters:
Name Type Description
(message) String | ErrorConstructor
(ErrorClass) ErrorConstructor
Returns:
Type:
Error