kaos.robots.util
Class Reason
java.lang.Object
kaos.robots.util.Reason
- All Implemented Interfaces:
- java.io.Serializable
public class Reason
- extends java.lang.Object
- implements java.io.Serializable
The Reason class provides information as to the reason of an
error or unexpected action.
- See Also:
- Serialized Form
Constructor Summary |
Reason(int code,
java.lang.String description)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
POLICY_VIOLATION
public static final int POLICY_VIOLATION
- See Also:
- Constant Field Values
PATH_PLANNING_ERROR
public static final int PATH_PLANNING_ERROR
- See Also:
- Constant Field Values
CAMERA_ERROR
public static final int CAMERA_ERROR
- See Also:
- Constant Field Values
SERVICE_FAILURE
public static final int SERVICE_FAILURE
- See Also:
- Constant Field Values
Reason
public Reason(int code,
java.lang.String description)
convertReasonCode
public static final java.lang.String convertReasonCode(int code)
getCode
public int getCode()
getDescription
public java.lang.String getDescription()
setException
public void setException(java.lang.Exception e)
getException
public java.lang.Exception getException()