Class DaemonInitException

  • All Implemented Interfaces:
    java.io.Serializable

    public class DaemonInitException
    extends java.lang.Exception
    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:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      DaemonInitException​(java.lang.String message)
      Constructs a new exception with the given message.
      DaemonInitException​(java.lang.String message, java.lang.Throwable cause)
      Constructs a new exception with the given detail and cause.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessageWithCause()
      Gets 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DaemonInitException

        public DaemonInitException​(java.lang.String message)
        Constructs a new exception with the given message.
        Parameters:
        message - the detail message accessible with Throwable.getMessage() .
      • DaemonInitException

        public DaemonInitException​(java.lang.String message,
                                   java.lang.Throwable cause)
        Constructs a new exception with the given detail and cause.
        Parameters:
        message - the detail message accessible with Throwable.getMessage() .
        cause - the cause accessible with Throwable.getCause().
    • Method Detail

      • getMessageWithCause

        public java.lang.String getMessageWithCause()
        Gets the message with the cause as a postfix.
        Returns:
        the message with the cause as a postfix.