new CustomError(arg1, arg2, arg3) → {CustomError}
Creates custom error object instance. Arguments order doesn't matter.
Parameters:
Name | Type | Description |
---|---|---|
arg1 |
Error | Object | string | void | null | parent error instance or error message or error details object |
arg2 |
Error | Object | string | void | null | parent error instance or error message or error details object |
arg3 |
Error | Object | string | void | null | parent error instance or error message or error details object |
Returns:
- Type
- CustomError