Create a custom error for illegal argument scenario
error metadata will include value
error message
value of the invalid argument
source error (if any)
Optional
causeadditional metadata (if any)
Optional
stackStatic
Optional
prepareOptional override for formatting stack traces
Static
stack
SPDX-License-Identifier: Apache-2.0