Class Failure

  • All Implemented Interfaces:
    Serializable

    public class Failure
    extends Object
    implements Serializable
    An instance of Failure is intended to wrap and simplify the webPDF server“s FaultInfo responses and shall provide the error code, message and stacktrace of a failure encountered by the webPDF server.
    See Also:
    Serialized Form
    • Constructor Detail

      • Failure

        public Failure()
    • Method Detail

      • getErrorCode

        public int getErrorCode()
        Returns numeric webPDF server error code, that is describing the issue.
        Returns:
        The numeric webPDF server error code, that is describing the issue.
      • setErrorCode

        public void setErrorCode​(int errorCode)
        Sets the numeric webPDF server error code, that is describing the issue.
        Parameters:
        errorCode - The numeric webPDF server error code, that is describing the issue.
      • getErrorMessage

        @Nullable
        public @Nullable String getErrorMessage()
        Returns the webPDF server error message, that is describing the issue.
        Returns:
        The webPDF server error message, that is describing the issue.
      • setErrorMessage

        public void setErrorMessage​(@Nullable
                                    @Nullable String errorMessage)
        Sets the webPDF server error message, that is describing the issue.
        Parameters:
        errorMessage - The webPDF server error message, that is describing the issue.
      • getStackTrace

        @Nullable
        public @Nullable String getStackTrace()
        Returns the stacktrace, that lead to the creation of this exception.
        Returns:
        The stacktrace, that lead to the creation of this exception.
      • setStackTrace

        public void setStackTrace​(@Nullable
                                  @Nullable String stackTrace)
        Sets the stacktrace, that lead to the creation of this exception.
        Parameters:
        stackTrace - The stacktrace, that lead to the creation of this exception.