Class ListenerExecutionFailedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.springframework.amqp.AmqpException
-
- org.springframework.amqp.rabbit.support.ListenerExecutionFailedException
-
- All Implemented Interfaces:
Serializable
public class ListenerExecutionFailedException extends AmqpException
Exception to be thrown when the execution of a listener method failed.- Author:
- Juergen Hoeller, Gary Russell
- See Also:
MessageListenerAdapter
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ListenerExecutionFailedException(String msg, Throwable cause, Message... failedMessage)
Constructor for ListenerExecutionFailedException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Message
getFailedMessage()
Collection<Message>
getFailedMessages()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ListenerExecutionFailedException
public ListenerExecutionFailedException(String msg, Throwable cause, Message... failedMessage)
Constructor for ListenerExecutionFailedException.- Parameters:
msg
- the detail messagecause
- the exception thrown by the listener methodfailedMessage
- the message(s) that failed
-
-
Method Detail
-
getFailedMessage
public Message getFailedMessage()
-
getFailedMessages
public Collection<Message> getFailedMessages()
-
-