edu.cornell.cs.sam.core
Class AssemblerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
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
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 |
AssemblerException
public AssemblerException()
AssemblerException
public AssemblerException(java.lang.String msg)
AssemblerException
public AssemblerException(int lc)
AssemblerException
public AssemblerException(java.lang.String msg,
int lc)
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