The relation or constraint attribute @ERRORis used in an expression to present an error message if an evaluation error occurrs.
Place @ERROR:Expression in the data slot of the relation or constraint
...
Also look at the ERROR$() function and the @ONNOVALUE attribute for error trapping.
...