Skip to main content

ui:error

Throw an error with a custom message.

This is useful inside components to throw errors for required props or other misconfigurations that you cant handle with argument definitions.

Example

<ui:error when="!{value}" message="This is an error message." />

Arguments

Name Type Description Required Default
when bool The condition that triggers the exception Yes null
message string The exception message No 'An error occurred in Fluid.'
code int The exception code No 1759132287