public class TargetError extends ErrorEvent implements TargetKnowledge, UniqueKnowledge
| Modifier and Type | Field and Description |
|---|---|
private Object |
id
The value of the unique parameter in the moment it was registered.
|
private TargetDefinition |
target
The serializable target definition.
|
ABORT_EXPOSURE, ABORT_TARGET, ALARM_OFF, ALARM_ON, BAD_SEEING, BAD_WEATHER, CLEAR_TEL, CLOSE_COVER, CLOSE_ROOF, CLOSE_SHUTTER, CONT_TIME, ERROR_TOKEN, ERRORCOMBINE, ERRORPACKAGE, GOOD_WEATHER, HIGH_WIND, MAIL_HOME, MAIL_LOCAL, MOVE_HOME, MOVE_PARK, NONE, OPEN_COVER, OPEN_SHUTTER, PIPE, REACQUIRE, REPOSITION, RESEND_COMMAND, RESET_ADAPTER, RESET_CALIBRATION, RESET_CCD, RESET_ENV, RESET_ERRORS, RESET_SPEC, RESET_TEL, SHUT_DOWN, STATUS_TOKEN, STOP_TIMESEPCHARlocalHost, sourceNamesource| Modifier | Constructor and Description |
|---|---|
protected |
TargetError(Object src)
Constructs a software error.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHuman()
Read-access to the human property, the human-readable part of the error
message.
|
TargetDefinition |
getTarget()
Returns the target.
|
Object |
getUnique()
Returns the unique id of this pick, most likely a string.
|
void |
registerTarget(TargetDefinition td)
Sets the target.
|
void |
registerUnique(Parameter unique)
Sets the unique ID of the current observation.
|
consume, createError, createError, createError, createError, createError, createStatus, createStatus, createStatus, extractClassName, extractFollowUp, extractPipe, getErrorClass, getFollowUp, getLine, getSevereness, isConsumed, isPipe, isStatus, parseClassName, parseHeader, parseLine, setFollowUp, setHuman, setHuman, setPipecheckType, equals, equalTime, equalTime, fromAscii, getAllCommandLines, getExecuteGroupKey, getHead, getNr, getTime, getType, hashCode, isValid, parseFromSingleString, readFromBufferedStream, setNr, setTime, setType, setValid, toSkippedString, toStringgetHost, getSourceName, setSourceNamegetSourceprivate TargetDefinition target
private Object id
protected TargetError(Object src)
#SEVERENESS level, has a
#FOLLOWUP as a recovery strategy an does not pipe.public void registerTarget(TargetDefinition td)
registerTarget in interface TargetDependingpublic void registerUnique(Parameter unique)
registerUnique in interface UniqueKnowledgepublic String getHuman()
ErrorEventgetHuman in class ErrorEventpublic TargetDefinition getTarget()
getTarget in interface TargetKnowledge