- java.lang.Object
-
- org.snmp4j.agent.AgentConfigManager.ErrorDescriptor
-
- All Implemented Interfaces:
AgentState.ErrorDescriptor
- Enclosing class:
- AgentConfigManager
public static class AgentConfigManager.ErrorDescriptor extends Object implements AgentState.ErrorDescriptor
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Gets the error description.ExceptiongetException()The exception that occurred.intgetSourceState()The source state (before the error).intgetTargetState()The target state (goal without error).
-
-
-
Method Detail
-
getDescription
public String getDescription()
Description copied from interface:AgentState.ErrorDescriptorGets the error description.- Specified by:
getDescriptionin interfaceAgentState.ErrorDescriptor- Returns:
- a description of the error.
-
getSourceState
public int getSourceState()
Description copied from interface:AgentState.ErrorDescriptorThe source state (before the error).- Specified by:
getSourceStatein interfaceAgentState.ErrorDescriptor- Returns:
- a integer value between
AgentState.STATE_CREATEDandAgentState.STATE_SAVED.
-
getTargetState
public int getTargetState()
Description copied from interface:AgentState.ErrorDescriptorThe target state (goal without error).- Specified by:
getTargetStatein interfaceAgentState.ErrorDescriptor- Returns:
- a integer value between
AgentState.STATE_CREATEDandAgentState.STATE_SAVED.
-
getException
public Exception getException()
Description copied from interface:AgentState.ErrorDescriptorThe exception that occurred.- Specified by:
getExceptionin interfaceAgentState.ErrorDescriptor- Returns:
- an exception.
-
-