Package mars
Class ProcessingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
mars.ProcessingException
- All Implemented Interfaces:
Serializable
Class to represent an error that occurs while assembling or running a MIPS program.
- Version:
- August 2003
- Author:
- Pete Sanderson
- See Also:
- Serialized Form
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for ProcessingException.Constructor for ProcessingException.Constructor for ProcessingException.Constructor for ProcessingException to handle runtime exceptionsProcessingException(ProgramStatement ps, String m, int cause)
Constructor for ProcessingException to handle runtime exceptionsConstructor for ProcessingException to handle address runtime exceptions -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ProcessingException
Constructor for ProcessingException.- Parameters:
e
- An ErrorList which is an ArrayList of ErrorMessage objects. Each ErrorMessage represents one processing error.
-
ProcessingException
Constructor for ProcessingException.- Parameters:
e
- An ErrorList which is an ArrayList of ErrorMessage objects. Each ErrorMessage represents one processing error.aee
- AddressErrorException object containing specialized error message, cause, address
-
ProcessingException
Constructor for ProcessingException to handle runtime exceptions- Parameters:
ps
- a ProgramStatement of statement causing runtime exceptionm
- a String containing specialized error message
-
ProcessingException
Constructor for ProcessingException to handle runtime exceptions- Parameters:
ps
- a ProgramStatement of statement causing runtime exceptionm
- a String containing specialized error messagecause
- exception cause (see Exceptions class for list)
-
ProcessingException
Constructor for ProcessingException to handle address runtime exceptions- Parameters:
ps
- a ProgramStatement of statement causing runtime exceptionaee
- AddressErrorException object containing specialized error message, cause, address
-
ProcessingException
public ProcessingException()Constructor for ProcessingException. No parameter and thus no error list. Use this for normal MIPS program termination (e.g. syscall 10 for exit).
-
-
Method Details
-
errors
Produce the list of error messages.- Returns:
- Returns ErrorList of error messages.
- See Also:
ErrorList
,ErrorMessage
-