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.EJBExceptionAn exception (typically) thrown byEJBReceivers 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RequestSendFailedException()Constructs a newRequestSendFailedExceptioninstance.RequestSendFailedException(boolean canBeRetried)Constructs a newRequestSendFailedExceptioninstance.RequestSendFailedException(String msg)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.RequestSendFailedException(Throwable cause)Constructs a newRequestSendFailedExceptioninstance with an initial cause.RequestSendFailedException(Throwable cause, boolean canBeRetried)Constructs a newRequestSendFailedExceptioninstance with an initial cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanBeRetried()Determine if this request can safely be retried.RequestSendFailedExceptionsetCanBeRetried(boolean canBeRetried)Set the "can be retried" flag.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
RequestSendFailedException
public RequestSendFailedException()
Constructs a newRequestSendFailedExceptioninstance. The message is left blank (null), and no cause is specified.
-
RequestSendFailedException
public RequestSendFailedException(String msg)
Constructs a newRequestSendFailedExceptioninstance with an initial message. No cause is specified.- Parameters:
msg- the message
-
RequestSendFailedException
public RequestSendFailedException(Throwable cause)
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
public RequestSendFailedException(String msg, Throwable cause)
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
public RequestSendFailedException(String message, boolean canBeRetried)
Constructs a newRequestSendFailedExceptioninstance with an initial message. No cause is specified.- Parameters:
message- the messagecanBeRetried- the value of the can-be-retried flag
-
RequestSendFailedException
public RequestSendFailedException(String message, Throwable cause, boolean canBeRetried)
Constructs a newRequestSendFailedExceptioninstance with an initial message and cause.- Parameters:
message- the messagecause- the causecanBeRetried- the value of the can-be-retried flag
-
RequestSendFailedException
public RequestSendFailedException(Throwable cause, boolean canBeRetried)
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 Detail
-
canBeRetried
public boolean canBeRetried()
Determine if this request can safely be retried.- Returns:
trueif the request can safely be retried;falseotherwise
-
setCanBeRetried
public RequestSendFailedException setCanBeRetried(boolean canBeRetried)
Set the "can be retried" flag.- Parameters:
canBeRetried- the flag value
-
-