Instantiates a new error with a message and an optional cause.
Optional
optional underlying cause of the error.
optional metadata to be reported.
source error (if any)
error message
additional metadata (if any)
Readonly
Static
Instantiates a new error with a message and an optional cause.