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
Modifier and TypeMethodDescriptionGets the error description.The exception that occurred.int
The source state (before the error).int
The target state (goal without error).
-
Method Details
-
getDescription
Description copied from interface:AgentState.ErrorDescriptor
Gets the error description.- Specified by:
getDescription
in interfaceAgentState.ErrorDescriptor
- Returns:
- a description of the error.
-
getSourceState
public int getSourceState()Description copied from interface:AgentState.ErrorDescriptor
The source state (before the error).- Specified by:
getSourceState
in interfaceAgentState.ErrorDescriptor
- Returns:
- a integer value between
AgentState.STATE_CREATED
andAgentState.STATE_SAVED
.
-
getTargetState
public int getTargetState()Description copied from interface:AgentState.ErrorDescriptor
The target state (goal without error).- Specified by:
getTargetState
in interfaceAgentState.ErrorDescriptor
- Returns:
- a integer value between
AgentState.STATE_CREATED
andAgentState.STATE_SAVED
.
-
getException
Description copied from interface:AgentState.ErrorDescriptor
The exception that occurred.- Specified by:
getException
in interfaceAgentState.ErrorDescriptor
- Returns:
- an exception.
-