Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS1029
#error: 'text'
Displays the text of an error defined with the #error directive.
The following sample shows how to create a user-defined error:
// XS1029.prg