orc.error.compiletime
Class CompilationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by orc.error.OrcException
              extended by orc.error.compiletime.CompilationException
All Implemented Interfaces:
java.io.Serializable, Locatable, Located
Direct Known Subclasses:
ParsingException, PatternException, SiteResolutionException, TypeException, UnboundVariableException

public class CompilationException
extends OrcException
implements Locatable

Exceptions generated during Orc compilation from source to portable compiled representations.

Author:
dkitchin
See Also:
Serialized Form

Field Summary
protected  SourceLocation location
           
 
Constructor Summary
CompilationException(java.lang.String message)
           
CompilationException(java.lang.String message, java.lang.Throwable cause)
           
CompilationException(java.lang.Throwable cause)
           
 
Method Summary
 java.lang.String getMessage()
           
 java.lang.String getMessageOnly()
           
 SourceLocation getSourceLocation()
           
 void setSourceLocation(SourceLocation location)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

location

protected SourceLocation location
Constructor Detail

CompilationException

public CompilationException(java.lang.String message)

CompilationException

public CompilationException(java.lang.String message,
                            java.lang.Throwable cause)

CompilationException

public CompilationException(java.lang.Throwable cause)
Method Detail

setSourceLocation

public void setSourceLocation(SourceLocation location)
Specified by:
setSourceLocation in interface Locatable

getSourceLocation

public SourceLocation getSourceLocation()
Specified by:
getSourceLocation in interface Located

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

getMessageOnly

public java.lang.String getMessageOnly()