org.nlogo.api
Class CompilerException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.nlogo.api.CompilerException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
SliderConstraint.ConstraintCompilerException

public class CompilerException
extends Exception

Exception thrown by various methods that accept NetLogo code as input and cause that code to be compiled; indicates the code was invalid. May be inspected to discover the location and nature of the error.

See Also:
Serialized Form

Field Summary
static String RUNTIME_ERROR_AT_COMPILE_TIME_MSG_PREFIX
           
 
Constructor Summary
CompilerException(String message, int startPos, int endPos, String fileName)
           
CompilerException(org.nlogo.api.Token token)
           
 
Method Summary
 int endPos()
           
 String fileName()
           
 int startPos()
           
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RUNTIME_ERROR_AT_COMPILE_TIME_MSG_PREFIX

public static final String RUNTIME_ERROR_AT_COMPILE_TIME_MSG_PREFIX
See Also:
Constant Field Values
Constructor Detail

CompilerException

public CompilerException(String message,
                         int startPos,
                         int endPos,
                         String fileName)

CompilerException

public CompilerException(org.nlogo.api.Token token)
Method Detail

startPos

public int startPos()

endPos

public int endPos()

fileName

public String fileName()

toString

public String toString()
Overrides:
toString in class Throwable