Class DaemonInitException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.commons.daemon.DaemonInitException
- All Implemented Interfaces:
Serializable
Throw this during init if you can't initialize yourself for some expected reason. Using this exception will cause the
exception's message to come out on stdout, rather than a dirty great stack trace.
- See Also:
-
Constructor Summary
ConstructorDescriptionDaemonInitException
(String message) Constructs a new exception with the given message.DaemonInitException
(String message, Throwable cause) Constructs a new exception with the given detail and cause. -
Method Summary
Modifier and TypeMethodDescriptionGets the message with the cause as a postfix.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DaemonInitException
Constructs a new exception with the given message.- Parameters:
message
- the detail message accessible withThrowable.getMessage()
.
-
DaemonInitException
Constructs a new exception with the given detail and cause.- Parameters:
message
- the detail message accessible withThrowable.getMessage()
.cause
- the cause accessible withThrowable.getCause()
.
-
-
Method Details
-
getMessageWithCause
Gets the message with the cause as a postfix.- Returns:
- the message with the cause as a postfix.
-