Create a custom error object
error metadata will include the cause
error message
source error (if any)
additional metadata (if any)
Optional
causeadditional metadata (if any)
Optional
stackStatic
Optional
prepareOptional override for formatting stack traces
Static
stack
SPDX-License-Identifier: Apache-2.0