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
Special
AS2Exception
with HTTP URL details- Author:
- Philip Helger
- See Also:
-
Constructor Summary
ConstructorDescriptionAS2HttpResponseException
(String sUrl, int nCode, String sMessage) Constructor -
Method Summary
Methods inherited from class com.helger.as2lib.exception.AS2Exception
getSourceMsg, log, log, setSourceMsg, terminate, terminate, terminate
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AS2HttpResponseException
Constructor- Parameters:
sUrl
- The URL that caused the error.nCode
- The HTTP status code.sMessage
- The HTTP status message
-
-
Method Details
-
getUrl
- Returns:
- The URL that failed. Never
null
.
-
getCode
public int getCode()- Returns:
- The HTTP status code retrieved.
-
getMessage
- Overrides:
getMessage
in classThrowable
- Returns:
- The HTTP status text retrieved.
-