- 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 String
getDescription()
Gets the error description.Exception
getException()
The exception that occurred.int
getSourceState()
The source state (before the error).int
getTargetState()
The target state (goal without error).
-
-
-
Method Detail
-
getDescription
public String 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
public Exception getException()
Description copied from interface:AgentState.ErrorDescriptor
The exception that occurred.- Specified by:
getException
in interfaceAgentState.ErrorDescriptor
- Returns:
- an exception.
-
-