Package org.jboss.ejb.client
Class RequestSendFailedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- jakarta.ejb.EJBException
-
- org.jboss.ejb.client.RequestSendFailedException
-
- All Implemented Interfaces:
Serializable
public class RequestSendFailedException extends jakarta.ejb.EJBException
An exception (typically) thrown byEJBReceiver
s 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 newRequestSendFailedException
instance.RequestSendFailedException(boolean canBeRetried)
Constructs a newRequestSendFailedException
instance.RequestSendFailedException(String msg)
Constructs a newRequestSendFailedException
instance with an initial message.RequestSendFailedException(String message, boolean canBeRetried)
Constructs a newRequestSendFailedException
instance with an initial message.RequestSendFailedException(String msg, Throwable cause)
Constructs a newRequestSendFailedException
instance with an initial message and cause.RequestSendFailedException(String message, Throwable cause, boolean canBeRetried)
Constructs a newRequestSendFailedException
instance with an initial message and cause.RequestSendFailedException(Throwable cause)
Constructs a newRequestSendFailedException
instance with an initial cause.RequestSendFailedException(Throwable cause, boolean canBeRetried)
Constructs a newRequestSendFailedException
instance with an initial cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canBeRetried()
Determine if this request can safely be retried.RequestSendFailedException
setCanBeRetried(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 newRequestSendFailedException
instance. The message is left blank (null
), and no cause is specified.
-
RequestSendFailedException
public RequestSendFailedException(String msg)
Constructs a newRequestSendFailedException
instance with an initial message. No cause is specified.- Parameters:
msg
- the message
-
RequestSendFailedException
public RequestSendFailedException(Throwable cause)
Constructs a newRequestSendFailedException
instance with an initial cause. If a non-null
cause 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 newRequestSendFailedException
instance with an initial message and cause.- Parameters:
msg
- the messagecause
- the cause
-
RequestSendFailedException
public RequestSendFailedException(boolean canBeRetried)
Constructs a newRequestSendFailedException
instance. 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 newRequestSendFailedException
instance 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 newRequestSendFailedException
instance 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 newRequestSendFailedException
instance with an initial cause. If a non-null
cause 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:
true
if the request can safely be retried;false
otherwise
-
setCanBeRetried
public RequestSendFailedException setCanBeRetried(boolean canBeRetried)
Set the "can be retried" flag.- Parameters:
canBeRetried
- the flag value
-
-