org.apache.commons.daemon
Class DaemonInitException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.commons.daemon.DaemonInitException
All Implemented Interfaces:
java.io.Serializable

public class DaemonInitException
extends java.lang.Exception

Throw this during init if you can't initialise yourself for some expected reason. Using this exception will cause the exception's message to come out on stdout, rather than a dirty great stacktrace.

Version:
$Id: DaemonInitException.java 1204007 2011-11-19 16:10:29Z ggregory $
Author:
Nick Griffiths (nicobrevin@gmail.com)
See Also:
Serialized Form

Constructor Summary
DaemonInitException(java.lang.String message)
           
DaemonInitException(java.lang.String message, java.lang.Throwable cause)
           
 
Method Summary
 java.lang.String getMessageWithCause()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, 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)

DaemonInitException

public DaemonInitException(java.lang.String message,
                           java.lang.Throwable cause)
Method Detail

getMessageWithCause

public java.lang.String getMessageWithCause()


Copyright (c) 2002-2013 - Apache Software Foundation