edu.cornell.cs.sam.core
Class AssemblerException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by edu.cornell.cs.sam.core.AssemblerException
All Implemented Interfaces:
java.io.Serializable

public class AssemblerException
extends java.lang.Exception

Specifies that there was an error while the assembler was loading the file

See Also:
Serialized Form

Constructor Summary
AssemblerException()
           
AssemblerException(int lc)
           
AssemblerException(java.lang.String msg)
           
AssemblerException(java.lang.String msg, int lc)
           
 
Method Summary
 int getLine()
          Retrives the line number if provided, -1 otherwise
 java.lang.String getMessage()
          Retrieves the message
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AssemblerException

public AssemblerException()

AssemblerException

public AssemblerException(java.lang.String msg)

AssemblerException

public AssemblerException(int lc)

AssemblerException

public AssemblerException(java.lang.String msg,
                          int lc)
Method Detail

getMessage

public java.lang.String getMessage()
Retrieves the message

Overrides:
getMessage in class java.lang.Throwable

getLine

public int getLine()
Retrives the line number if provided, -1 otherwise


toString

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