Compiler Error J0500

#error 'user defined error'

This error message is generated when there is a #error conditional compilation directive in the program.

The following example illustrates this error:

#define DEBUG
public class Simple{
   public void method1(){
      #if DEBUG
         #error You should not be running in debug mode here!
         //error: displayed when 'DEBUG' is defined
      #endif
   }
}