Optional ReadonlycauseOptional ReadonlycodeOptional ReadonlymetadataReadonlystatusConverts the error to a formatted string representation.
Optionalmultiline: boolean
Determine if output value must be multiline or not.
A formatted error string.
StaticcreateCreate a RuntimeError.
Optionaloptions: ErrorOptions
The options to create a RuntimeError.
A new RuntimeError instance.
Thrown when an authenticated principal is not allowed to perform an action.
Carries
statusCode = 403so any HTTP error handler maps it to403 Forbidden, while the error itself stays platform-agnostic (usable on the frontend too).