You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-dev@xml.apache.org by ke...@apache.org on 2003/07/14 20:28:45 UTC
cvs commit: xml-xindice/java/src/org/apache/xindice/util XindiceRuntimeException.java ConfigurationException.java XindiceException.java
kevinross 2003/07/14 11:28:45
Modified: java/src/org/apache/xindice/util XindiceException.java
Added: java/src/org/apache/xindice/util
XindiceRuntimeException.java
ConfigurationException.java
Log:
Addition of ConfigurationException inherited from XindiceRuntimeException
Revision Changes Path
1.5 +35 -46 xml-xindice/java/src/org/apache/xindice/util/XindiceException.java
Index: XindiceException.java
===================================================================
RCS file: /home/cvs/xml-xindice/java/src/org/apache/xindice/util/XindiceException.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- XindiceException.java 17 Nov 2002 08:50:40 -0000 1.4
+++ XindiceException.java 14 Jul 2003 18:28:45 -0000 1.5
@@ -66,52 +66,41 @@
* A XindiceException is the base class for all Xindice related
* Exceptions.
*/
-
public class XindiceException extends Exception {
- protected Throwable cause;
-
- public XindiceException() {
- }
+ protected Throwable cause;
- public XindiceException(String message) {
- super(message);
- }
-
- public XindiceException(String message, Throwable cause) {
- super(message);
- this.cause = cause;
- }
-
- public void printStackTrace() {
- printStackTrace(System.err);
- }
-
- public void printStackTrace(PrintStream s) {
- super.printStackTrace(s);
- if ( this.cause != null ) {
- s.print("Caused by: ");
- this.cause.printStackTrace(s);
- }
- }
-
- public void printStackTrace(PrintWriter s) {
- super.printStackTrace(s);
- if ( this.cause != null ) {
- s.print("Caused by: ");
- this.cause.printStackTrace(s);
- }
- }
-
- /**
- * @deprecated used getCause instead
- */
- public Throwable getWrappedThrowable() {
- return getCause();
- }
-
- public Throwable getCause() {
- return cause;
- }
+ public XindiceException() {}
+ public XindiceException(String message) {
+ super(message);
+ }
+
+ public XindiceException(String message, Throwable cause) {
+ super(message);
+ this.cause = cause;
+ }
+
+ public void printStackTrace() {
+ printStackTrace(System.err);
+ }
+
+ public void printStackTrace(PrintStream s) {
+ super.printStackTrace(s);
+ if (this.cause != null) {
+ s.print("Caused by: ");
+ this.cause.printStackTrace(s);
+ }
+ }
+
+ public void printStackTrace(PrintWriter s) {
+ super.printStackTrace(s);
+ if (this.cause != null) {
+ s.print("Caused by: ");
+ this.cause.printStackTrace(s);
+ }
+ }
+
+ public Throwable getCause() {
+ return cause;
+ }
}
-
1.1 xml-xindice/java/src/org/apache/xindice/util/XindiceRuntimeException.java
Index: XindiceRuntimeException.java
===================================================================
package org.apache.xindice.util;
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 1999 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "Xindice" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation and was
* originally based on software copyright (c) 1999-2001, The dbXML
* Group, L.L.C., http://www.dbxmlgroup.com. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
* $Id: XindiceRuntimeException.java,v 1.1 2003/07/14 18:28:45 kevinross Exp $
*/
import java.io.PrintStream;
import java.io.PrintWriter;
/**
* A XindiceRuntimeException is the base class for all Xindice related RuntimeExceptions.
*/
public class XindiceRuntimeException extends RuntimeException {
protected Throwable cause;
public XindiceRuntimeException() {}
public XindiceRuntimeException(String message) {
super(message);
}
public XindiceRuntimeException(String message, Throwable cause) {
super(message);
this.cause = cause;
}
public void printStackTrace() {
printStackTrace(System.err);
}
public void printStackTrace(PrintStream s) {
super.printStackTrace(s);
if (this.cause != null) {
s.print("Caused by: ");
this.cause.printStackTrace(s);
}
}
public void printStackTrace(PrintWriter s) {
super.printStackTrace(s);
if (this.cause != null) {
s.print("Caused by: ");
this.cause.printStackTrace(s);
}
}
public Throwable getCause() {
return cause;
}
}
1.1 xml-xindice/java/src/org/apache/xindice/util/ConfigurationException.java
Index: ConfigurationException.java
===================================================================
package org.apache.xindice.util;
/**
* @author kross
*/
public class ConfigurationException extends XindiceRuntimeException {
/**
*
*/
public ConfigurationException() {
super();
}
/**
* @param message
*/
public ConfigurationException(String message) {
super(message);
}
/**
* @param message
* @param cause
*/
public ConfigurationException(String message, Throwable cause) {
super(message, cause);
}
}