polyglot.types
Class SemanticException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by polyglot.types.SemanticException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BadSerializationException, NoClassException, NoMemberException

public class SemanticException
extends java.lang.Exception

Thrown during any number of phases of the compiler during which a semantic error may be detected.

See Also:
Serialized Form

Field Summary
static boolean fillInStackTrace
           
protected  Position position
           
 
Constructor Summary
SemanticException()
           
SemanticException(Position position)
           
SemanticException(java.lang.String m)
           
SemanticException(java.lang.String m, Position position)
           
SemanticException(java.lang.String m, java.lang.Throwable cause)
           
SemanticException(java.lang.Throwable cause)
           
 
Method Summary
 java.lang.Throwable fillInStackTrace()
           
 Position position()
           
 
Methods inherited from class java.lang.Throwable
getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

position

protected Position position

fillInStackTrace

public static boolean fillInStackTrace
Constructor Detail

SemanticException

public SemanticException()

SemanticException

public SemanticException(java.lang.Throwable cause)

SemanticException

public SemanticException(Position position)

SemanticException

public SemanticException(java.lang.String m)

SemanticException

public SemanticException(java.lang.String m,
                         java.lang.Throwable cause)

SemanticException

public SemanticException(java.lang.String m,
                         Position position)
Method Detail

position

public Position position()

fillInStackTrace

public java.lang.Throwable fillInStackTrace()
Overrides:
fillInStackTrace in class java.lang.Throwable