com.unet.warmachine.peerlocator
Class ConfigurationException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.unet.warmachine.peerlocator.ConfigurationException
- All Implemented Interfaces:
- java.io.Serializable
- public class ConfigurationException
- extends java.lang.Exception
This exception indicates a problem with agent configuration data.
- See Also:
- Serialized Form
|
Field Summary |
static int |
REASON_ADDRESS_NOT_ASSIGNED
For statically assigned IP, configured address in member representing
agent not assigned to local host; for dynamically assigned IP, no address
assigned to local host is within configured range. |
static int |
REASON_NO_LOCAL_ADDRESS
No local address of appropriate (public or private) type is assigned to
local host. |
static int |
REASON_NOT_IN_MEMBERLIST
Agent name in configuration not found in membership list. |
|
Method Summary |
int |
getReason()
Returns reason for exception. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
REASON_NOT_IN_MEMBERLIST
public static final int REASON_NOT_IN_MEMBERLIST
- Agent name in configuration not found in membership list.
REASON_NO_LOCAL_ADDRESS
public static final int REASON_NO_LOCAL_ADDRESS
- No local address of appropriate (public or private) type is assigned to
local host.
REASON_ADDRESS_NOT_ASSIGNED
public static final int REASON_ADDRESS_NOT_ASSIGNED
- For statically assigned IP, configured address in member representing
agent not assigned to local host; for dynamically assigned IP, no address
assigned to local host is within configured range. Only thrown if
Configuration.getUseConfigIPAddress() is true.
ConfigurationException
public ConfigurationException(int reason,
java.lang.String text)
- Constructor.
- Parameters:
reason - Reason for exception. See REASON_ constants.text - Display text.
getReason
public int getReason()
- Returns reason for exception. See REASON_ constants.
- Returns:
- Reason for exception.