Create a custom error object
error metadata will include the cause
cause
error message
source error (if any)
additional metadata (if any)
Optional
Readonly
Create a custom error object
error metadata will include the
cause