org.mars_sim.msp.core.person.ai.mission
Class MissionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.mars_sim.msp.core.person.ai.mission.MissionException
- All Implemented Interfaces:
- Serializable
public class MissionException
- extends Exception
An exception that can be thrown by missions.
- See Also:
- Serialized Form
|
Method Summary |
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 |
MissionException
public MissionException(String phase,
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(String phase,
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
getPhase
public String getPhase()
- Gets the mission phase that the exception happened.
- Returns:
- the phase
Copyright © 2009-2013. All Rights Reserved.