camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [3/3] camel git commit: CAMEL-4576: throwException EIP now allows to create new exception instance with message with details from exchange using simple language.
Date Fri, 10 Jul 2015 14:15:30 GMT
CAMEL-4576: throwException EIP now allows to create new exception instance with message with
details from exchange using simple language.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/7747c4ae
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/7747c4ae
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/7747c4ae

Branch: refs/heads/master
Commit: 7747c4aec3c74fc81d22d1e7c9a97fbfbf364b4c
Parents: 404246e
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Fri Jul 10 16:21:46 2015 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Fri Jul 10 16:21:55 2015 +0200

----------------------------------------------------------------------
 .../apache/camel/model/ThrowExceptionDefinition.java   | 13 +++++++++++++
 1 file changed, 13 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/7747c4ae/camel-core/src/main/java/org/apache/camel/model/ThrowExceptionDefinition.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/model/ThrowExceptionDefinition.java
b/camel-core/src/main/java/org/apache/camel/model/ThrowExceptionDefinition.java
index fcddbfb..33955ca 100644
--- a/camel-core/src/main/java/org/apache/camel/model/ThrowExceptionDefinition.java
+++ b/camel-core/src/main/java/org/apache/camel/model/ThrowExceptionDefinition.java
@@ -113,6 +113,19 @@ public class ThrowExceptionDefinition extends NoOutputDefinition<ThrowExceptionD
         this.message = message;
     }
 
+    public String getExceptionType() {
+        return exceptionType;
+    }
+
+    /**
+     * The class of the exception to create using the message.
+     *
+     * @see #setMessage(String)
+     */
+    public void setExceptionType(String exceptionType) {
+        this.exceptionType = exceptionType;
+    }
+
     public Class<? extends Exception> getExceptionClass() {
         return exceptionClass;
     }


Mime
View raw message