Package io.awspring.cloud.sqs
Class QueueAttributesResolvingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.awspring.cloud.sqs.QueueAttributesResolvingException
- All Implemented Interfaces:
Serializable
Exception thrown when a
QueueAttributesResolver fails.- Since:
- 3.0
- Author:
- Tomaz Fernandes
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionQueueAttributesResolvingException(String message, Throwable cause) Create an instance with the message and throwable cause.QueueAttributesResolvingException(String message, Throwable cause, boolean queueIgnored) Create an instance with the message, cause, and a flag indicating that the resolver treated the missing queue as ignored perQueueNotFoundStrategy.IGNORE. -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the resolver signalled that the missing queue should be ignored underQueueNotFoundStrategy.IGNORE, so the listener can skip startup rather than fail the application context.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
QueueAttributesResolvingException
Create an instance with the message and throwable cause.- Parameters:
message- the error message.cause- the cause.
-
QueueAttributesResolvingException
Create an instance with the message, cause, and a flag indicating that the resolver treated the missing queue as ignored perQueueNotFoundStrategy.IGNORE.- Parameters:
message- the error message.cause- the cause.queueIgnored- whether the resolver signalled that the queue should be ignored.- Since:
- 4.2
-
-
Method Details
-
isQueueIgnored
public boolean isQueueIgnored()Whether the resolver signalled that the missing queue should be ignored underQueueNotFoundStrategy.IGNORE, so the listener can skip startup rather than fail the application context.- Returns:
trueif the queue should be ignored.- Since:
- 4.2
-