|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception com.ibm.websphere.objectgrid.ObjectGridException com.ibm.websphere.objectgrid.ZoneConfigurationException
public class ZoneConfigurationException
This exception is thrown when a container is started in an incompatible zone or when a problem has been detected with the zone configuration within the deployment policy. A container can be placed into a custom zone by specifying the zone name when the container is started. When no zone name is specified, the container is placed into the DefaultZone. When containers have been started in one or more custom zones for a particular ObjectGrid, it is an error to start a subsequent container in the DefaultZone for that ObjectGrid. A ZoneConfigurationException will be thrown when this is detected. Similarly, when containers are started in the DefaultZone for a particular ObjectGrid, it is an error to start a subsequent container in a custom zone for that ObjectGrid. A ZoneConfigurationException will be thrown in this case. A container's deployment policy is validated when the container starts. Validation is done on zone configuration within the deployment policy if zones are configured. If a problem is found with the zone configuration this exception is thrown.
Field Summary | |
---|---|
static int |
CONTAINER_NOT_ALLOWED_IN_CUSTOM_ZONE
One of the error codes for this exception. |
static int |
CONTAINER_NOT_ALLOWED_IN_DEFAULT_ZONE
One of the error codes for this exception. |
static int |
GENERIC
A generic error code. |
Constructor Summary | |
---|---|
ZoneConfigurationException()
Constructs a new ZoneConfigurationException with null as its detail
message. |
|
ZoneConfigurationException(String message)
Constructs a new ZoneConfigurationException with the specified detail message. |
|
ZoneConfigurationException(String message,
int errorCode)
Constructs a new ZoneConfigurationException with the specified detail message and error code. |
|
ZoneConfigurationException(String message,
Throwable cause)
Constructs a new ZoneConfigurationException with the specified detail message and cause. |
|
ZoneConfigurationException(String message,
Throwable cause,
int errorCode)
Constructs a new ZoneConfigurationException with the specified detail message, cause, and error code. |
|
ZoneConfigurationException(Throwable cause)
Constructs a new ZoneConfigurationException with a specified cause. |
Method Summary | |
---|---|
int |
getErrorCode()
Returns the error code that was set by one of the constructors that accepts an error code, or GENERIC if one of the other
constructors was called. |
Methods inherited from class com.ibm.websphere.objectgrid.ObjectGridException |
---|
getCause, initCause |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int GENERIC
public static final int CONTAINER_NOT_ALLOWED_IN_DEFAULT_ZONE
ServerProperties.DEFAULT_ZONE
,
Constant Field Valuespublic static final int CONTAINER_NOT_ALLOWED_IN_CUSTOM_ZONE
ServerProperties.DEFAULT_ZONE
,
Constant Field ValuesConstructor Detail |
---|
public ZoneConfigurationException()
null
as its detail
message. The cause is not initialized, and may subsequently be initialized
by a call to the initCause
method.
ObjectGridException.initCause(Throwable)
public ZoneConfigurationException(String message)
initCause
method.
message
- the detail message. The detail message is saved for later
retrieval by the getMessage
method.ObjectGridException.initCause(Throwable)
,
Throwable.getMessage()
public ZoneConfigurationException(String message, int errorCode)
initCause
method.
message
- the detail message. The detail message is saved for later
retrieval by the getMessage
method.errorCode
- the errorCode corresponds to one of the constants of this classObjectGridException.initCause(Throwable)
,
Throwable.getMessage()
public ZoneConfigurationException(Throwable cause)
(cause==null ? null : cause.toString())
is used (which typically contains the class and detail message of cause
).
This constructor is useful for ZoneConfigurationException that are little more
than wrappers for other throwables.
cause
- is the exception that caused this exception to be thrown,
which is saved for later retrieval by the getCause()
method.
A null
value is permitted and indicates that the cause
is nonexistent or is unknown.ObjectGridException.getCause()
public ZoneConfigurationException(String message, Throwable cause)
Note that the detail message associated with cause
is
not automatically incorporated in this ZoneConfigurationException detail
message.
message
- the detail message (which is saved for later retrieval by the
getMessage
method).cause
- the cause (which is saved for later retrieval by the
getCause
method). (Anull
value is
permitted, and indicates that the cause is nonexistent or
unknown).ObjectGridException.getCause()
,
Throwable.getMessage()
public ZoneConfigurationException(String message, Throwable cause, int errorCode)
Note that the detail message associated with cause
is
not automatically incorporated in this ZoneConfigurationException detail
message.
message
- the detail message (which is saved for later retrieval by the
getMessage
method).cause
- the cause (which is saved for later retrieval by the
getCause
method). (Anull
value is
permitted, and indicates that the cause is nonexistent or
unknown).errorCode
- the errorCode corresponds to one of the constants of this classObjectGridException.getCause()
,
Throwable.getMessage()
Method Detail |
---|
public int getErrorCode()
GENERIC
if one of the other
constructors was called.
|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |