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.
Optional
causeadditional metadata (if any)
Optional
stackStatic
Optional
prepareOptional override for formatting stack traces
Static
stack
SPDX-License-Identifier: Apache-2.0