Class ClientResultException

  • All Implemented Interfaces:
    Serializable

    public class ClientResultException
    extends ResultException

    An instance of ClientResultException will be encountered in case a wsclient operation failed on the client´s side. It shall describe the failure, by providing a Error and a message describing the issue.

    Important: A ClientResultException is describing failures in an application implementing a wsclient and should never be used to indicate fail states on the side of the webPDF server.
    ServerResultException shall be reserved for that purpose.

    See Also:
    Error, Serialized Form
    • Constructor Detail

      • ClientResultException

        public ClientResultException​(@NotNull
                                     @NotNull Error error)
        Creates a new ResultException wrapping the given wsclient Error fail state.
        Parameters:
        error - The wsclient Error fail state to wrap.
      • ClientResultException

        public ClientResultException​(@NotNull
                                     @NotNull Error error,
                                     @Nullable
                                     @Nullable Exception cause)

        Creates a new ResultException wrapping the given wsclient Error fail state, exit code and Exception cause.

        Important: A ClientResultException is describing failures in an application implementing a wsclient and should never be used to indicate fail states on the side of the webPDF server.
        ServerResultException shall be reserved for that purpose.

        Parameters:
        error - The wsclient Error fail state to wrap.
        cause - The Exception that caused this failure.