From 0e7b94f9e906b6944ef17c33eb4e4f0e04d403e6 Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Wed, 22 Jan 2014 14:18:49 -0500 Subject: [PATCH] Add constructors to MessageHandlingException Issue: SPR-11345 --- .../messaging/MessageHandlingException.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/spring-messaging/src/main/java/org/springframework/messaging/MessageHandlingException.java b/spring-messaging/src/main/java/org/springframework/messaging/MessageHandlingException.java index 2a93da384a..0052f28073 100644 --- a/spring-messaging/src/main/java/org/springframework/messaging/MessageHandlingException.java +++ b/spring-messaging/src/main/java/org/springframework/messaging/MessageHandlingException.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,10 +25,18 @@ package org.springframework.messaging; @SuppressWarnings("serial") public class MessageHandlingException extends MessagingException { + public MessageHandlingException(Message failedMessage) { + super(failedMessage); + } + public MessageHandlingException(Message message, String description) { super(message, description); } + public MessageHandlingException(Message failedMessage, Throwable cause) { + super(failedMessage, cause); + } + public MessageHandlingException(Message message, String description, Throwable cause) { super(message, description, cause); }