Package org.jboss.ejb.client
Class RequestSendFailedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.ejb.EJBException
org.jboss.ejb.client.RequestSendFailedException
- All Implemented Interfaces:
Serializable
public class RequestSendFailedException
extends javax.ejb.EJBException
An exception (typically) thrown by
EJBReceivers if the receiver couldn't successfully handle a request. If
this exception is received, the outcome of the request is unknown (and possible retries have also failed indeterminately).- Author:
- Jaikiran Pai
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newRequestSendFailedExceptioninstance.RequestSendFailedException(boolean canBeRetried) Constructs a newRequestSendFailedExceptioninstance.Constructs a newRequestSendFailedExceptioninstance with an initial message.RequestSendFailedException(String message, boolean canBeRetried) Constructs a newRequestSendFailedExceptioninstance with an initial message.RequestSendFailedException(String msg, Throwable cause) Constructs a newRequestSendFailedExceptioninstance with an initial message and cause.RequestSendFailedException(String message, Throwable cause, boolean canBeRetried) Constructs a newRequestSendFailedExceptioninstance with an initial message and cause.Constructs a newRequestSendFailedExceptioninstance with an initial cause.RequestSendFailedException(Throwable cause, boolean canBeRetried) Constructs a newRequestSendFailedExceptioninstance with an initial cause. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermine if this request can safely be retried.setCanBeRetried(boolean canBeRetried) Set the "can be retried" flag.Methods inherited from class javax.ejb.EJBException
getCausedByExceptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RequestSendFailedException
public RequestSendFailedException()Constructs a newRequestSendFailedExceptioninstance. The message is left blank (null), and no cause is specified. -
RequestSendFailedException
Constructs a newRequestSendFailedExceptioninstance with an initial message. No cause is specified.- Parameters:
msg- the message
-
RequestSendFailedException
Constructs a newRequestSendFailedExceptioninstance with an initial cause. If a non-nullcause is specified, its message is used to initialize the message of thisRequestSendFailedException; otherwise the message is left blank (null).- Parameters:
cause- the cause
-
RequestSendFailedException
Constructs a newRequestSendFailedExceptioninstance with an initial message and cause.- Parameters:
msg- the messagecause- the cause
-
RequestSendFailedException
public RequestSendFailedException(boolean canBeRetried) Constructs a newRequestSendFailedExceptioninstance. The message is left blank (null), and no cause is specified.- Parameters:
canBeRetried- the value of the can-be-retried flag
-
RequestSendFailedException
Constructs a newRequestSendFailedExceptioninstance with an initial message. No cause is specified.- Parameters:
message- the messagecanBeRetried- the value of the can-be-retried flag
-
RequestSendFailedException
Constructs a newRequestSendFailedExceptioninstance with an initial message and cause.- Parameters:
message- the messagecause- the causecanBeRetried- the value of the can-be-retried flag
-
RequestSendFailedException
Constructs a newRequestSendFailedExceptioninstance with an initial cause. If a non-nullcause is specified, its message is used to initialize the message of thisRequestSendFailedException; otherwise the message is left blank (null).- Parameters:
cause- the causecanBeRetried- the value of the can-be-retried flag
-
-
Method Details
-
canBeRetried
public boolean canBeRetried()Determine if this request can safely be retried.- Returns:
trueif the request can safely be retried;falseotherwise
-
setCanBeRetried
Set the "can be retried" flag.- Parameters:
canBeRetried- the flag value
-