You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by eb...@apache.org on 2004/06/15 12:40:54 UTC

cvs commit: jakarta-commons/configuration/src/java/org/apache/commons/configuration ConfigurationRuntimeException.java ConversionException.java ConfigurationException.java

ebourg      2004/06/15 03:40:54

  Modified:    configuration/src/java/org/apache/commons/configuration
                        ConfigurationException.java
  Added:       configuration/src/java/org/apache/commons/configuration
                        ConfigurationRuntimeException.java
                        ConversionException.java
  Log:
  new runtime exceptions
  
  Revision  Changes    Path
  1.4       +45 -25    jakarta-commons/configuration/src/java/org/apache/commons/configuration/ConfigurationException.java
  
  Index: ConfigurationException.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/configuration/src/java/org/apache/commons/configuration/ConfigurationException.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ConfigurationException.java	2 Jun 2004 16:42:24 -0000	1.3
  +++ ConfigurationException.java	15 Jun 2004 10:40:54 -0000	1.4
  @@ -1,5 +1,3 @@
  -package org.apache.commons.configuration;
  -
   /*
    * Copyright 2001-2004 The Apache Software Foundation.
    *
  @@ -16,34 +14,56 @@
    * limitations under the License.
    */
   
  +package org.apache.commons.configuration;
  +
   import org.apache.commons.lang.exception.NestableException;
   
   /**
    * Any exception that occurs while initializing a Configuration
    * object.
    *
  - *
  - * @version $Id$
  + * @author Eric Pugh
  + * @version $Revision$, $Date$
    */
  -
  -public class ConfigurationException extends NestableException {
  -
  -	public ConfigurationException(Throwable root) {
  -		super(root);
  -	}
  -
  -
  -	public ConfigurationException(String string, Throwable root) {
  -		super(string, root);
  -	}
  -
  -	public ConfigurationException(String s) {
  -		super(s);
  -	}
  +public class ConfigurationException extends NestableException
  +{
  +    /**
  +     * Constructs a new <code>ConfigurationException</code> without specified
  +     * detail message.
  +     */
  +    public ConfigurationException() { }
  +
  +    /**
  +     * Constructs a new <code>ConfigurationException</code> with specified
  +     * detail message.
  +     *
  +     * @param message  the error message
  +     */
  +    public ConfigurationException(String message)
  +    {
  +        super(message);
  +    }
  +
  +    /**
  +     * Constructs a new <code>ConfigurationException</code> with specified
  +     * nested <code>Throwable</code>.
  +     *
  +     * @param cause  the exception or error that caused this exception to be thrown
  +     */
  +    public ConfigurationException(Throwable cause)
  +    {
  +        super(cause);
  +    }
  +
  +    /**
  +     * Constructs a new <code>ConfigurationException</code> with specified
  +     * detail message and nested <code>Throwable</code>.
  +     *
  +     * @param message  the error message
  +     * @param cause    the exception or error that caused this exception to be thrown
  +     */
  +    public ConfigurationException(String message, Throwable cause)
  +    {
  +        super(message, cause);
  +    }
   }
  -
  -
  -
  -
  -
  -
  
  
  
  1.1                  jakarta-commons/configuration/src/java/org/apache/commons/configuration/ConfigurationRuntimeException.java
  
  Index: ConfigurationRuntimeException.java
  ===================================================================
  /*
   * Copyright 2004 The Apache Software Foundation.
   *
   * Licensed under the Apache License, Version 2.0 (the "License")
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *     http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  
  package org.apache.commons.configuration;
  
  import org.apache.commons.lang.exception.NestableRuntimeException;
  
  /**
   * A configuration related runtime exception.
   *
   * @author Emmanuel Bourg
   * @version $Revision: 1.1 $, $Date: 2004/06/15 10:40:54 $
   */
  public class ConfigurationRuntimeException extends NestableRuntimeException
  {
      /**
       * Constructs a new <code>ConfigurationRuntimeException</code> without
       * specified detail message.
       */
      public ConfigurationRuntimeException() { }
  
      /**
       * Constructs a new <code>ConfigurationRuntimeException</code> with
       * specified detail message.
       *
       * @param message  the error message
       */
      public ConfigurationRuntimeException(String message)
      {
          super(message);
      }
  
      /**
       * Constructs a new <code>ConfigurationRuntimeException</code> with
       * specified nested <code>Throwable</code>.
       *
       * @param cause  the exception or error that caused this exception to be thrown
       */
      public ConfigurationRuntimeException(Throwable cause)
      {
          super(cause);
      }
  
      /**
       * Constructs a new <code>ConfigurationRuntimeException</code> with
       * specified detail message and nested <code>Throwable</code>.
       *
       * @param message  the error message
       * @param cause    the exception or error that caused this exception to be thrown
       */
      public ConfigurationRuntimeException(String message, Throwable cause)
      {
          super(message, cause);
      }
  }
  
  
  
  1.1                  jakarta-commons/configuration/src/java/org/apache/commons/configuration/ConversionException.java
  
  Index: ConversionException.java
  ===================================================================
  /*
   * Copyright 2004 The Apache Software Foundation.
   *
   * Licensed under the Apache License, Version 2.0 (the "License")
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *     http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  
  package org.apache.commons.configuration;
  
  /**
   * Exception thrown when a property is incompatible with the type requested.
   *
   * @author Emmanuel Bourg
   * @version $Revision: 1.1 $, $Date: 2004/06/15 10:40:54 $
   */
  public class ConversionException extends ConfigurationRuntimeException
  {
      /**
       * Constructs a new <code>ConversionException</code> without specified
       * detail message.
       */
      public ConversionException() { }
  
      /**
       * Constructs a new <code>ConversionException</code> with specified
       * detail message.
       *
       * @param message  the error message
       */
      public ConversionException(String message)
      {
          super(message);
      }
  
      /**
       * Constructs a new <code>ConversionException</code> with specified
       * nested <code>Throwable</code>.
       *
       * @param cause  the exception or error that caused this exception to be thrown
       */
      public ConversionException(Throwable cause)
      {
          super(cause);
      }
  
      /**
       * Constructs a new <code>ConversionException</code> with specified
       * detail message and nested <code>Throwable</code>.
       *
       * @param message  the error message
       * @param cause    the exception or error that caused this exception to be thrown
       */
      public ConversionException(String message, Throwable cause)
      {
          super(message, cause);
      }
  }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org