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
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
 Position position()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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
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()