Top Description Fields Constructors Methods
org.springframework.messaging

public Class MessagingException

extends NestedRuntimeException
Class Inheritance
Known Direct Subclasses
org.springframework.messaging.converter.MessageConversionException, org.springframework.messaging.core.DestinationResolutionException, org.springframework.messaging.handler.invocation.MethodArgumentResolutionException, org.springframework.messaging.simp.annotation.support.MissingSessionUserException, org.springframework.messaging.MessageDeliveryException, org.springframework.messaging.MessageHandlingException
Annotations
@SuppressWarnings:serial
Imports
org.springframework.core.NestedRuntimeException, org.springframework.lang.Nullable

The base exception for any failures related to messaging.
Authors
Mark Fisher, Gary Russell
Since
4.0

Field Summary

Modifier and TypeField and Description
private final Message<?>

Constructor Summary

AccessConstructor and Description
public
public
public
MessagingException(String description, Throwable cause)

public
MessagingException(Message<?> message, String description)

public
public
MessagingException(Message<?> message, String description, Throwable cause)

Method Summary

Modifier and TypeMethod and Description
public Message<?>
public String
toString()

Overrides java.lang.Throwable.toString.

Returns a short description of this throwable.

Inherited from org.springframework.core.NestedRuntimeException:
containsgetMostSpecificCausegetRootCause

Field Detail

failedMessageback to summary
private final Message<?> failedMessage
Annotations
@Nullable

Constructor Detail

MessagingExceptionback to summary
public MessagingException(Message<?> message)
MessagingExceptionback to summary
public MessagingException(String description)
MessagingExceptionback to summary
public MessagingException(String description, Throwable cause)
MessagingExceptionback to summary
public MessagingException(Message<?> message, String description)
MessagingExceptionback to summary
public MessagingException(Message<?> message, Throwable cause)
MessagingExceptionback to summary
public MessagingException(Message<?> message, String description, Throwable cause)

Method Detail

getFailedMessageback to summary
public Message<?> getFailedMessage()
Annotations
@Nullable
toStringback to summary
public String toString()

Overrides java.lang.Throwable.toString.

Doc from java.lang.Throwable.toString.

Returns a short description of this throwable. The result is the concatenation of:

  • the name of the class of this object
  • ": " (a colon and a space)
  • the result of invoking this object's getLocalizedMessage method
If getLocalizedMessage returns null, then just the class name is returned.
Returns:String

a string representation of this throwable.

Annotations
@Override