|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--mars.ProcessingException
Class to represent error that occurs while assembling or running a MIPS program.
Constructor Summary | |
ProcessingException()
Constructor for ProcessingException. |
|
ProcessingException(ErrorList e)
Constructor for ProcessingException. |
|
ProcessingException(ProgramStatement ps,
AddressErrorException aee)
Constructor for ProcessingException to handle address runtime exceptions |
|
ProcessingException(ProgramStatement ps,
java.lang.String m)
Constructor for ProcessingException to handle runtime exceptions |
|
ProcessingException(ProgramStatement ps,
java.lang.String m,
int cause)
Constructor for ProcessingException to handle runtime exceptions |
Method Summary | |
ErrorList |
errors()
Produce the list of error messages. |
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 |
Constructor Detail |
public ProcessingException(ErrorList e)
e
- An ErrorList which is an ArrayList of ErrorMessage objects. Each ErrorMessage
represents one processing error.public ProcessingException(ProgramStatement ps, java.lang.String m)
ps
- a ProgramStatement of statement causing runtime exceptionm
- a String containing specialized error messagepublic ProcessingException(ProgramStatement ps, java.lang.String m, int cause)
ps
- a ProgramStatement of statement causing runtime exceptionm
- a String containing specialized error messagecause
- exception cause (see Exceptions class for list)public ProcessingException(ProgramStatement ps, AddressErrorException aee)
ps
- a ProgramStatement of statement causing runtime exceptionaee
- AddressErrorException object containing specialized error message, cause, addresspublic ProcessingException()
Method Detail |
public ErrorList errors()
ErrorList
,
ErrorMessage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |