Class DeclarationExceptionEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.springframework.context.ApplicationEvent
-
- org.springframework.amqp.event.AmqpEvent
-
- org.springframework.amqp.rabbit.core.RabbitAdminEvent
-
- org.springframework.amqp.rabbit.core.DeclarationExceptionEvent
-
- All Implemented Interfaces:
Serializable
public class DeclarationExceptionEvent extends RabbitAdminEvent
Application event published when a declaration exception occurs.- Since:
- 1.6
- Author:
- Gary Russell
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description DeclarationExceptionEvent(Object source, Declarable declarable, Throwable t)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Declarable
getDeclarable()
Throwable
getThrowable()
String
toString()
-
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
-
Methods inherited from class java.util.EventObject
getSource
-
-
-
-
Constructor Detail
-
DeclarationExceptionEvent
public DeclarationExceptionEvent(Object source, @Nullable Declarable declarable, Throwable t)
-
-
Method Detail
-
getDeclarable
@Nullable public Declarable getDeclarable()
- Returns:
- the declarable - if null, we were declaring a broker-named queue.
-
getThrowable
public Throwable getThrowable()
- Returns:
- the throwable.
-
toString
public String toString()
- Overrides:
toString
in classEventObject
-
-