org.mars_sim.msp.simulation.person.ai.mission
Class MissionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.mars_sim.msp.simulation.person.ai.mission.MissionException
All Implemented Interfaces:
java.io.Serializable

public class MissionException
extends java.lang.Exception

An exception that can be thrown by missions.

See Also:
Serialized Form

Constructor Summary
MissionException(java.lang.String phase, java.lang.Exception exception)
          Constructor with existing exception
MissionException(java.lang.String phase, java.lang.String message)
          Constructor
 
Method Summary
 java.lang.String getPhase()
          Gets the mission phase that the exception happened.
 
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

MissionException

public MissionException(java.lang.String phase,
                        java.lang.String message)
Constructor

Parameters:
phase - the phase of the mission in which this exception is thrown (or null if none).
message - the exception message.

MissionException

public MissionException(java.lang.String phase,
                        java.lang.Exception exception)
Constructor with existing exception

Parameters:
phase - the phase of the mission in which this exception is thrown (or null if none).
exception - the exception
Method Detail

getPhase

public java.lang.String getPhase()
Gets the mission phase that the exception happened.

Returns:
the phase