PROTON-997: EventImpl.dispatch: Do not wrap HandlerException in another
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/4e2258f6 Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/4e2258f6 Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/4e2258f6 Branch: refs/heads/proton-go Commit: 4e2258f6faa476c45ed9ca44c071a2d6b9aa0f56 Parents: a82681a Author: Bozo Dragojevic <[email protected]> Authored: Tue Sep 15 12:07:21 2015 +0200 Committer: Bozo Dragojevic <[email protected]> Committed: Wed Sep 16 15:40:05 2015 +0200 ---------------------------------------------------------------------- .../main/java/org/apache/qpid/proton/engine/impl/EventImpl.java | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/4e2258f6/proton-j/src/main/java/org/apache/qpid/proton/engine/impl/EventImpl.java ---------------------------------------------------------------------- diff --git a/proton-j/src/main/java/org/apache/qpid/proton/engine/impl/EventImpl.java b/proton-j/src/main/java/org/apache/qpid/proton/engine/impl/EventImpl.java index 74b9cdc..98d9265 100644 --- a/proton-j/src/main/java/org/apache/qpid/proton/engine/impl/EventImpl.java +++ b/proton-j/src/main/java/org/apache/qpid/proton/engine/impl/EventImpl.java @@ -100,6 +100,8 @@ class EventImpl implements Event delegated = handler; try { handler.handle(this); + } catch(HandlerException handlerException) { + throw handlerException; } catch(RuntimeException runtimeException) { throw new HandlerException(handler, runtimeException); } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
