jdillon 2003/09/03 10:39:07
Modified: modules/common/src/java/org/apache/geronimo/common/mutable
MuCharacter.java MuDouble.java MuFloat.java
MuInteger.java MuLong.java MuShort.java
Added: modules/common/src/java/org/apache/geronimo/common
CoercionException.java NotCoercibleException.java
Removed: modules/common/src/java/org/apache/geronimo/common/coerce
CoercionException.java NotCoercibleException.java
Log:
o drop coerce package, promote exceptions to common
Revision Changes Path
1.1
incubator-geronimo/modules/common/src/java/org/apache/geronimo/common/CoercionException.java
Index: CoercionException.java
===================================================================
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 2003 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 "Apache" and "Apache Software Foundation" and
* "Apache Geronimo" must not be used to endorse or promote products
* derived from this software without prior written permission. For
* written permission, please contact [EMAIL PROTECTED]
*
* 5. Products derived from this software may not be called "Apache",
* "Apache Geronimo", 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. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
* ====================================================================
*/
package org.apache.geronimo.common;
/**
* This exception is thrown to indicate that a problem has occured while
* trying to coerce an object.
*
* @version $Revision: 1.1 $ $Date: 2003/09/03 17:39:07 $
*/
public class CoercionException
extends RuntimeException
{
/**
* Construct a <tt>CoercionException</tt> with the specified detail
* message.
*
* @param msg Detail message.
*/
public CoercionException(String msg) {
super(msg);
}
/**
* Construct a <tt>CoercionException</tt> with the specified detail
* message and nested <tt>Throwable</tt>.
*
* @param msg Detail message.
* @param nested Nested <tt>Throwable</tt>.
*/
public CoercionException(String msg, Throwable nested) {
super(msg, nested);
}
/**
* Construct a <tt>CoercionException</tt> with the specified
* nested <tt>Throwable</tt>.
*
* @param nested Nested <tt>Throwable</tt>.
*/
public CoercionException(Throwable nested) {
super(nested);
}
/**
* Construct a <tt>CoercionException</tt> with no detail.
*/
public CoercionException() {
super();
}
}
1.1
incubator-geronimo/modules/common/src/java/org/apache/geronimo/common/NotCoercibleException.java
Index: NotCoercibleException.java
===================================================================
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 2003 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 "Apache" and "Apache Software Foundation" and
* "Apache Geronimo" must not be used to endorse or promote products
* derived from this software without prior written permission. For
* written permission, please contact [EMAIL PROTECTED]
*
* 5. Products derived from this software may not be called "Apache",
* "Apache Geronimo", 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. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
* ====================================================================
*/
package org.apache.geronimo.common;
/**
* This exception is thrown to indicate that an object was not coercible.
*
* @version $Revision: 1.1 $ $Date: 2003/09/03 17:39:07 $
*/
public class NotCoercibleException
extends CoercionException
{
/**
* Construct a <tt>NotCoercibleException</tt> with the specified detail
* message.
*
* @param msg Detail message.
*/
public NotCoercibleException(String msg) {
super(msg);
}
/**
* Construct a <tt>NotCoercibleException</tt> with the specified detail
* message and nested <tt>Throwable</tt>.
*
* @param msg Detail message.
* @param nested Nested <tt>Throwable</tt>.
*/
public NotCoercibleException(String msg, Throwable nested) {
super(msg, nested);
}
/**
* Construct a <tt>NotCoercibleException</tt> with the specified
* nested <tt>Throwable</tt>.
*
* @param nested Nested <tt>Throwable</tt>.
*/
public NotCoercibleException(Throwable nested) {
super(nested);
}
/**
* Construct a <tt>NotCoercibleException</tt> with no detail.
*/
public NotCoercibleException() {
super();
}
/**
* Construct a <tt>NotCoercibleException</tt> with an object detail.
*
* @param obj Object detail.
*/
public NotCoercibleException(Object obj) {
super(String.valueOf(obj));
}
}
1.3 +2 -2
incubator-geronimo/modules/common/src/java/org/apache/geronimo/common/mutable/MuCharacter.java
Index: MuCharacter.java
===================================================================
RCS file:
/home/cvs/incubator-geronimo/modules/common/src/java/org/apache/geronimo/common/mutable/MuCharacter.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- MuCharacter.java 27 Aug 2003 09:08:10 -0000 1.2
+++ MuCharacter.java 3 Sep 2003 17:39:07 -0000 1.3
@@ -59,7 +59,7 @@
import java.io.Serializable;
import org.apache.geronimo.common.CloneableObject;
-import org.apache.geronimo.common.coerce.NotCoercibleException;
+import org.apache.geronimo.common.NotCoercibleException;
/**
* A mutable character class.
1.3 +2 -2
incubator-geronimo/modules/common/src/java/org/apache/geronimo/common/mutable/MuDouble.java
Index: MuDouble.java
===================================================================
RCS file:
/home/cvs/incubator-geronimo/modules/common/src/java/org/apache/geronimo/common/mutable/MuDouble.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- MuDouble.java 27 Aug 2003 09:08:10 -0000 1.2
+++ MuDouble.java 3 Sep 2003 17:39:07 -0000 1.3
@@ -59,7 +59,7 @@
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.geronimo.common.Primitives;
-import org.apache.geronimo.common.coerce.NotCoercibleException;
+import org.apache.geronimo.common.NotCoercibleException;
/**
* A mutable double class.
1.3 +2 -2
incubator-geronimo/modules/common/src/java/org/apache/geronimo/common/mutable/MuFloat.java
Index: MuFloat.java
===================================================================
RCS file:
/home/cvs/incubator-geronimo/modules/common/src/java/org/apache/geronimo/common/mutable/MuFloat.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- MuFloat.java 27 Aug 2003 09:08:10 -0000 1.2
+++ MuFloat.java 3 Sep 2003 17:39:07 -0000 1.3
@@ -59,7 +59,7 @@
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.geronimo.common.Primitives;
-import org.apache.geronimo.common.coerce.NotCoercibleException;
+import org.apache.geronimo.common.NotCoercibleException;
/**
* A mutable float class.
1.3 +2 -2
incubator-geronimo/modules/common/src/java/org/apache/geronimo/common/mutable/MuInteger.java
Index: MuInteger.java
===================================================================
RCS file:
/home/cvs/incubator-geronimo/modules/common/src/java/org/apache/geronimo/common/mutable/MuInteger.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- MuInteger.java 27 Aug 2003 09:08:10 -0000 1.2
+++ MuInteger.java 3 Sep 2003 17:39:07 -0000 1.3
@@ -56,7 +56,7 @@
package org.apache.geronimo.common.mutable;
-import org.apache.geronimo.common.coerce.NotCoercibleException;
+import org.apache.geronimo.common.NotCoercibleException;
/**
* A mutable integer class.
1.3 +2 -2
incubator-geronimo/modules/common/src/java/org/apache/geronimo/common/mutable/MuLong.java
Index: MuLong.java
===================================================================
RCS file:
/home/cvs/incubator-geronimo/modules/common/src/java/org/apache/geronimo/common/mutable/MuLong.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- MuLong.java 27 Aug 2003 09:08:10 -0000 1.2
+++ MuLong.java 3 Sep 2003 17:39:07 -0000 1.3
@@ -58,7 +58,7 @@
import org.apache.commons.lang.builder.HashCodeBuilder;
-import org.apache.geronimo.common.coerce.NotCoercibleException;
+import org.apache.geronimo.common.NotCoercibleException;
/**
* A mutable long integer class.
1.3 +2 -2
incubator-geronimo/modules/common/src/java/org/apache/geronimo/common/mutable/MuShort.java
Index: MuShort.java
===================================================================
RCS file:
/home/cvs/incubator-geronimo/modules/common/src/java/org/apache/geronimo/common/mutable/MuShort.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- MuShort.java 27 Aug 2003 09:08:10 -0000 1.2
+++ MuShort.java 3 Sep 2003 17:39:07 -0000 1.3
@@ -56,7 +56,7 @@
package org.apache.geronimo.common.mutable;
-import org.apache.geronimo.common.coerce.NotCoercibleException;
+import org.apache.geronimo.common.NotCoercibleException;
/**
* A mutable short class.