tamaya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ple...@apache.org
Subject [3/6] incubator-tamaya git commit: TAMAYA-72 Exception handling adjusted
Date Mon, 13 Apr 2015 19:21:07 GMT
TAMAYA-72 Exception handling adjusted


Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/commit/54d216ee
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/tree/54d216ee
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/diff/54d216ee

Branch: refs/heads/master
Commit: 54d216ee90c5bf434576b6227d85a189ad128887
Parents: d42c5e7
Author: Oliver B. Fischer <plexus@apache.org>
Authored: Mon Apr 6 18:13:54 2015 +0200
Committer: Oliver B. Fischer <plexus@apache.org>
Committed: Mon Apr 6 18:13:54 2015 +0200

----------------------------------------------------------------------
 .../main/java/org/apache/tamaya/jodatime/DateTimeConverter.java    | 2 +-
 .../java/org/apache/tamaya/jodatime/DateTimeZoneConverter.java     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/54d216ee/sandbox/jodatime/src/main/java/org/apache/tamaya/jodatime/DateTimeConverter.java
----------------------------------------------------------------------
diff --git a/sandbox/jodatime/src/main/java/org/apache/tamaya/jodatime/DateTimeConverter.java
b/sandbox/jodatime/src/main/java/org/apache/tamaya/jodatime/DateTimeConverter.java
index 0063aa5..03c28e5 100644
--- a/sandbox/jodatime/src/main/java/org/apache/tamaya/jodatime/DateTimeConverter.java
+++ b/sandbox/jodatime/src/main/java/org/apache/tamaya/jodatime/DateTimeConverter.java
@@ -61,7 +61,7 @@ public class DateTimeConverter implements PropertyConverter<DateTime>
{
 
         try {
             result = formatter.parseDateTime(trimmed);
-        } catch (IllegalArgumentException e) {
+        } catch (RuntimeException e) {
             // Ok, go on and try the next parser
         }
 

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/54d216ee/sandbox/jodatime/src/main/java/org/apache/tamaya/jodatime/DateTimeZoneConverter.java
----------------------------------------------------------------------
diff --git a/sandbox/jodatime/src/main/java/org/apache/tamaya/jodatime/DateTimeZoneConverter.java
b/sandbox/jodatime/src/main/java/org/apache/tamaya/jodatime/DateTimeZoneConverter.java
index 09daebb..ccdf175 100644
--- a/sandbox/jodatime/src/main/java/org/apache/tamaya/jodatime/DateTimeZoneConverter.java
+++ b/sandbox/jodatime/src/main/java/org/apache/tamaya/jodatime/DateTimeZoneConverter.java
@@ -42,7 +42,7 @@ public class DateTimeZoneConverter implements PropertyConverter<DateTimeZone>
{
                 result = DateTimeZone.forID(trimmed);
             }
 
-        } catch (Exception e) {
+        } catch (RuntimeException e) {
             result = null; // Give the next converter a change. Read the JavaDoc of convert
         }
 


Mime
View raw message