Simple Machine

util
Class UserVisibleException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by util.UserVisibleException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AbstractCPU.ImplementationException, AbstractCPU.InvalidInstructionException, AbstractCPU.MachineHaltException, AbstractMainMemory.InvalidAddressException, Register.TimingException

public class UserVisibleException
extends Exception

The idea is that exceptions that are thrown from the class the defines an exception that extends UserVisibleException will be treated as the "natural" exception of a sequence of exceptions that are thrown from elsewhere and that all of these subsequent unnatrual exceptions will take their identity (i.e., stack trace from that preceeding natural exception.

See Also:
Serialized Form

Constructor Summary
UserVisibleException()
           
UserVisibleException(String aMessage)
           
UserVisibleException(String aMessage, Exception aCause)
           
UserVisibleException(String aMessage, int aPC)
           
UserVisibleException(String aMessage, int aPC, Exception aCause)
           
 
Method Summary
 String getMessage()
           
 void setPC(int aPC)
           
 
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
 

Constructor Detail

UserVisibleException

public UserVisibleException()

UserVisibleException

public UserVisibleException(String aMessage,
                            int aPC,
                            Exception aCause)

UserVisibleException

public UserVisibleException(String aMessage,
                            Exception aCause)

UserVisibleException

public UserVisibleException(String aMessage)

UserVisibleException

public UserVisibleException(String aMessage,
                            int aPC)
Method Detail

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

setPC

public void setPC(int aPC)

Simple Machine

Copyright © 2010, 2011 Mike Feeley. All Rights Reserved.