Class RequestSendFailedException

  • All Implemented Interfaces:
    Serializable

    public class RequestSendFailedException
    extends jakarta.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:
    Serialized Form
    • Constructor Detail

      • RequestSendFailedException

        public RequestSendFailedException()
        Constructs a new RequestSendFailedException instance. The message is left blank (null), and no cause is specified.
      • RequestSendFailedException

        public RequestSendFailedException​(String msg)
        Constructs a new RequestSendFailedException instance with an initial message. No cause is specified.
        Parameters:
        msg - the message
      • RequestSendFailedException

        public RequestSendFailedException​(Throwable cause)
        Constructs a new RequestSendFailedException instance with an initial cause. If a non-null cause is specified, its message is used to initialize the message of this RequestSendFailedException; otherwise the message is left blank (null).
        Parameters:
        cause - the cause
      • RequestSendFailedException

        public RequestSendFailedException​(String msg,
                                          Throwable cause)
        Constructs a new RequestSendFailedException instance with an initial message and cause.
        Parameters:
        msg - the message
        cause - the cause
      • RequestSendFailedException

        public RequestSendFailedException​(boolean canBeRetried)
        Constructs a new RequestSendFailedException 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 new RequestSendFailedException instance with an initial message. No cause is specified.
        Parameters:
        message - the message
        canBeRetried - the value of the can-be-retried flag
      • RequestSendFailedException

        public RequestSendFailedException​(String message,
                                          Throwable cause,
                                          boolean canBeRetried)
        Constructs a new RequestSendFailedException instance with an initial message and cause.
        Parameters:
        message - the message
        cause - the cause
        canBeRetried - the value of the can-be-retried flag
      • RequestSendFailedException

        public RequestSendFailedException​(Throwable cause,
                                          boolean canBeRetried)
        Constructs a new RequestSendFailedException instance with an initial cause. If a non-null cause is specified, its message is used to initialize the message of this RequestSendFailedException; otherwise the message is left blank (null).
        Parameters:
        cause - the cause
        canBeRetried - 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