commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1613592 - in /commons/sandbox/beanutils2/trunk/src: changes/changes.xml main/java/org/apache/commons/beanutils2/TransformationException.java main/java/org/apache/commons/beanutils2/Transformer.java
Date Sat, 26 Jul 2014 10:01:26 GMT
Author: britter
Date: Sat Jul 26 10:01:26 2014
New Revision: 1613592

URL: http://svn.apache.org/r1613592
Log:
SANDBOX-476: Exception raised during Transformation. Thanks to Yogesh Rao.

Added:
    commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/TransformationException.java
Modified:
    commons/sandbox/beanutils2/trunk/src/changes/changes.xml
    commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/Transformer.java

Modified: commons/sandbox/beanutils2/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/commons/sandbox/beanutils2/trunk/src/changes/changes.xml?rev=1613592&r1=1613591&r2=1613592&view=diff
==============================================================================
--- commons/sandbox/beanutils2/trunk/src/changes/changes.xml (original)
+++ commons/sandbox/beanutils2/trunk/src/changes/changes.xml Sat Jul 26 10:01:26 2014
@@ -22,7 +22,10 @@
     <title>Apache Commons BeanUtils2 - Changes</title>
   </properties>
   <body>
-  <release version="0.1" date="201?-??-??" description="First release.">
+  <release version="2.0" date="TBA" description="Redesign of beanutils with a fluent API">
+    <action dev="britter" type="add" due-to="Yogesh Rao" issue="SANDBOX-473">
+        Exception raised during Transformation
+    </action>
     <action dev="britter" type="update" issue="SANDBOX-474">
         Change Codestyle to Sun/Eclipse formatting with spaces
     </action>

Added: commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/TransformationException.java
URL: http://svn.apache.org/viewvc/commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/TransformationException.java?rev=1613592&view=auto
==============================================================================
--- commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/TransformationException.java
(added)
+++ commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/TransformationException.java
Sat Jul 26 10:01:26 2014
@@ -0,0 +1,51 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.beanutils2;
+
+public class TransformationException extends RuntimeException {
+
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = 8814258056509530189L;
+
+    /**
+     * Construct a new exception with the specified message.
+     * 
+     * @param message
+     *            The message describing this exception
+     */
+    public TransformationException(String message) {
+        super(message);
+    }
+
+    /**
+     * Construct a new exception with the specified message and root cause.
+     * 
+     * @param message
+     *            The message describing this exception
+     * @param cause
+     *            The root cause of this exception
+     */
+    public TransformationException(String message, Throwable cause) {
+        super(message, cause);
+    }
+}

Modified: commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/Transformer.java
URL: http://svn.apache.org/viewvc/commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/Transformer.java?rev=1613592&r1=1613591&r2=1613592&view=diff
==============================================================================
--- commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/Transformer.java
(original)
+++ commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/Transformer.java
Sat Jul 26 10:01:26 2014
@@ -27,7 +27,7 @@ import java.lang.reflect.Type;
  */
 public interface Transformer<S, T> {
 
-    T convert(S input);
+    T convert(S input) throws TransformationException;
 
     Type getSourceType();
 



Mime
View raw message