* Construct a new LifecycleException with no other information.
*/
public LifecycleException() {
-
- this(null, null);
-
+ super();
}
* @param message Message describing this exception
*/
public LifecycleException(String message) {
-
- this(message, null);
-
+ super(message);
}
* @param throwable Throwable that caused this exception
*/
public LifecycleException(Throwable throwable) {
-
- this(null, throwable);
-
+ super(throwable);
}
* @param throwable Throwable that caused this exception
*/
public LifecycleException(String message, Throwable throwable) {
-
- super();
- this.message = message;
- this.throwable = throwable;
-
+ super(message, throwable);
}
-
-
- //------------------------------------------------------ Instance Variables
-
-
- /**
- * The error message passed to our constructor (if any)
- */
- protected String message = null;
-
-
- /**
- * The underlying exception or error passed to our constructor (if any)
- */
- protected Throwable throwable = null;
-
-
- //---------------------------------------------------------- Public Methods
-
-
- /**
- * Returns the message associated with this exception, if any.
- */
- @Override
- public String getMessage() {
-
- return (message);
-
- }
-
-
- /**
- * Returns the throwable that caused this exception, if any.
- */
- public Throwable getThrowable() {
-
- return (throwable);
-
- }
-
-
- /**
- * Return a formatted string that describes this exception.
- */
- @Override
- public String toString() {
-
- StringBuilder sb = new StringBuilder("LifecycleException: ");
- if (message != null) {
- sb.append(message);
- if (throwable != null) {
- sb.append(": ");
- }
- }
- if (throwable != null) {
- sb.append(throwable.toString());
- }
- return (sb.toString());
-
- }
-
-
-}
+}
\ No newline at end of file
} catch (Exception e) {
throw new LifecycleException
(sm.getString
- ("coyoteConnector.protocolHandlerInitializationFailed", e));
+ ("coyoteConnector.protocolHandlerInitializationFailed"), e);
}
onameProtocolHandler = register(protocolHandler,
throw new LifecycleException
(errPrefix + " " + sm.getString
- ("coyoteConnector.protocolHandlerStartFailed", e));
+ ("coyoteConnector.protocolHandlerStartFailed"), e);
}
mapperListener.start();
} catch (Exception e) {
throw new LifecycleException
(sm.getString
- ("coyoteConnector.protocolHandlerStopFailed", e));
+ ("coyoteConnector.protocolHandlerStopFailed"), e);
}
mapperListener.stop();
} catch (Exception e) {
throw new LifecycleException
(sm.getString
- ("coyoteConnector.protocolHandlerDestroyFailed", e));
+ ("coyoteConnector.protocolHandlerDestroyFailed"), e);
}
if (getService() != null) {
# CoyoteConnector
#
coyoteConnector.cannotRegisterProtocol=Cannot register MBean for the Protocol
-coyoteConnector.protocolHandlerDestroyFailed=Protocol handler destroy failed: {0}
-coyoteConnector.protocolHandlerInitializationFailed=Protocol handler initialization failed: {0}
-coyoteConnector.protocolHandlerInstantiationFailed=Protocol handler instantiation failed: {0}
-coyoteConnector.protocolHandlerStartFailed=Protocol handler start failed: {0}
+coyoteConnector.protocolHandlerDestroyFailed=Protocol handler destroy failed
+coyoteConnector.protocolHandlerInitializationFailed=Protocol handler initialization failed
+coyoteConnector.protocolHandlerInstantiationFailed=Protocol handler instantiation failed
+coyoteConnector.protocolHandlerStartFailed=Protocol handler start failed
coyoteConnector.protocolRegistrationFailed=Protocol JMX registration failed
coyoteConnector.protocolHandlerPauseFailed=Protocol handler pause failed
coyoteConnector.protocolHandlerResumeFailed=Protocol handler resume failed