Class AS2HttpResponseException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.helger.as2lib.exception.AS2Exception
com.helger.as2lib.processor.sender.AS2HttpResponseException
All Implemented Interfaces:
Serializable

public class AS2HttpResponseException extends AS2Exception
Special AS2Exception with HTTP URL details
Author:
Philip Helger
See Also:
  • Constructor Details

    • AS2HttpResponseException

      public AS2HttpResponseException(@Nonnull String sUrl, int nCode, @Nonnull String sMessage)
      Constructor
      Parameters:
      sUrl - The URL that caused the error.
      nCode - The HTTP status code.
      sMessage - The HTTP status message
  • Method Details

    • getUrl

      @Nonnull public String getUrl()
      Returns:
      The URL that failed. Never null.
    • getCode

      public int getCode()
      Returns:
      The HTTP status code retrieved.
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable
      Returns:
      The HTTP status text retrieved.