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