Create an instance of ErrorWithCause.
Error message.
Original error, causing this error.
Readonly
causeOriginal error, causing this error.
Optional
stackStatic
Optional
prepareOptional override for formatting stack traces
Static
stackRoot cause of the error. If there are multiple errors caused one by another, the root cause is the first error that occurred. In case there is no root cause.
The root cause.
Static
capture
Represents an error that was caused by another error.