SPDX-License-Identifier: Apache-2.0
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.
additional metadata (if any)
SPDX-License-Identifier: Apache-2.0