Creates a complex error from one cause or a list of causes.
The new ComplexError instance.
OptionalcauseReadonlycausesReadonlymessageOptionalstackStaticfromCreates a complex error from a list of errors.
Errors to include as causes.
A ComplexError containing the provided causes.
StaticfromCreates an instance from an optional message string.
Optionalmessage: string
Error message; defaults to an empty string.
A new BaseError instance.
StaticimprintRepairs an error instance's name, stack trace, and prototype chain.
Error instance to repair.
StaticisIndicates whether the argument provided is a built-in Error instance or not.
Error that groups several underlying errors under one message.
Example