com.ibm.ws.exception
Class ComponentDisabledException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.ibm.ws.exception.WsException
-
- com.ibm.ws.exception.WsRuntimeFwException
-
- com.ibm.ws.exception.ComponentDisabledException
-
- All Implemented Interfaces:
- WsNestedException, java.io.Serializable
public class ComponentDisabledException extends WsRuntimeFwException
AComponentDisabledException
is used to signal to the runtime framework that a component exists in the runtime framework but is currently disabled (for reasons unspecified). The component which throws this event will be exempt from further lifecycle events.Note: Configuration analyzers or a server activation plan are preferential ways to avoid using this exception. For example, it is inappropriate to throw this exception to prevent component startup based on server type.
- See Also:
com.ibm.wsspi.runtime.component.WsComponent#initialize(Object)
, Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description ComponentDisabledException()
Constructs a newComponentDisabledException
withnull
as its detail message.ComponentDisabledException(java.lang.String msg)
Constructs a newComponentDisabledException
with the specified detail message.ComponentDisabledException(java.lang.String msg, java.lang.Throwable t)
Constructs a newComponentDisabledException
with the specified detail message and cause.ComponentDisabledException(java.lang.Throwable t)
Constructs a newComponentDisabledException
with the specified cause and a message which typically contains the class and detail message ofcause
.
-
Method Summary
-
Methods inherited from class com.ibm.ws.exception.WsException
getCause, initCause
-
-
-
-
Constructor Detail
-
ComponentDisabledException
public ComponentDisabledException()
Constructs a newComponentDisabledException
withnull
as its detail message. The cause is not initialized, and may subsequently be initialized by a call toWsException.initCause(java.lang.Throwable)
-
ComponentDisabledException
public ComponentDisabledException(java.lang.String msg)
Constructs a newComponentDisabledException
with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call toWsException.initCause(java.lang.Throwable)
- Parameters:
msg
- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.
-
ComponentDisabledException
public ComponentDisabledException(java.lang.Throwable t)
Constructs a newComponentDisabledException
with the specified cause and a message which typically contains the class and detail message ofcause
. This constructor is useful for exceptions that are little more than wrappers for other throwables.- Parameters:
t
- the cause (which is saved for later retrieval by theWsException.getCause()
method). (Anull
value is permitted, and indicates that the cause is nonexistent or unknown.)
-
ComponentDisabledException
public ComponentDisabledException(java.lang.String msg, java.lang.Throwable t)
Constructs a newComponentDisabledException
with the specified detail message and cause.Note that the detail message associated with
cause
is not automatically incorporated in this exception's detail message.- Parameters:
msg
- the detail message (which is saved for later retrieval by theThrowable.getMessage()
method).t
- the cause (which is saved for later retrieval by theWsException.getCause()
method). (Anull
value is permitted, and indicates that the cause is nonexistent or unknown.)
-
-