User: mnf999  
  Date: 01/08/29 16:20:50

  Added:       src/main/org/jboss/system ConfigurationException.java
  Log:
  A configuration exception
  
  Revision  Changes    Path
  1.1                  jboss/src/main/org/jboss/system/ConfigurationException.java
  
  Index: ConfigurationException.java
  ===================================================================
  /*
  * JBoss, the OpenSource J2EE server
  *
  * Distributable under LGPL license.
  * See terms of license at gnu.org.
  */
  package org.jboss.system;
  
  /**
  * Throw to indicate a non-fatal configuration related problem.
  *
  * @see ConfigurationService
  *
  * @author  <a href="mailto:[EMAIL PROTECTED]";>Jason Dillon</a>
  * @version <pre>$Revision: 1.1 $</pre>
  */
  public class ConfigurationException
  extends Exception
  {
     /** The root cause of this exception */
     protected Throwable cause;
     
     /**
     * Construct a <tt>ConfigurationException</tt>.
     *
     * @param message    The exception detail message.
     */
     public ConfigurationException(final String message) {
        super(message);
     }
     
     /**
     * Construct a <tt>ConfigurationException</tt>.
     *
     * @param message    The exception detail message.
     * @param cause      The detail cause of the exception.
     */
     public ConfigurationException(final String message, 
        final Throwable cause) 
     {
        super(message);
        this.cause = cause;
     }
     
     /**
     * Get the cause of the exception.
     *
     * @return  The cause of the exception or null if there is none.
     */
     public Throwable getCause() { 
        return cause; 
     }
     
     /**
     * Return a string representation of the exception.
     *
     * @return  A string representation.
     */
     public String toString() {
        return cause == null ? 
        super.toString() : 
        super.toString() + ", Cause: " + cause;
     }
  }
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to