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