interface UserErrorOptions extends ErrorOptions Options for the UserError class. Properties optional code: string Machine readable code for this error. Useful for catching different types of errors in try-catch. metadata: unknown Additional metadata related to the error. Useful for understanding context about the error.