This exception is thrown by
VirtualMachine.,
VirtualMachine.,
VirtualMachine.
methods if an agent, or agent library, cannot be initialized.
When thrown by VirtualMachine.loadAgentLibrary, or
VirtualMachine.loadAgentPath then the exception encapsulates
the error returned by the agent's Agent_OnAttach function.
This error code can be obtained by invoking the returnValue method.
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| pack-priv static final long | serialVersionUID
use serialVersionUID for interoperability
|
| Access | Constructor and Description |
|---|---|
| public | |
| public | AgentInitializationException(String
the detail message. s)Constructs an |
| public | AgentInitializationException(String
the detail message. s, int the return value returnValue)Constructs an |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the return valueIf the exception was created with the return value from the agent
|
| returnValue | back to summary |
|---|---|
| private int returnValue | |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID Hides java. use serialVersionUID for interoperability | |
| AgentInitializationException | back to summary |
|---|---|
| public AgentInitializationException() Constructs an | |
| AgentInitializationException | back to summary |
|---|---|
| public AgentInitializationException(String s) Constructs an
| |
| AgentInitializationException | back to summary |
|---|---|
| public AgentInitializationException(String s, int returnValue) Constructs an
| |
| returnValue | back to summary |
|---|---|
| public int returnValue() If the exception was created with the return value from the agent
| |