Package rs.adsdev.ifconfig.client
Class IfconfigException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
rs.adsdev.ifconfig.client.IfconfigException
- All Implemented Interfaces:
Serializable
Thrown when the ifconfig service returns a non-2xx response, or when the
request fails at the transport / serialization layer. For non-2xx responses,
statusCode() carries the HTTP status and body() carries the
raw response body (typically a JSON error envelope). For transport errors,
status is 0 and body is null.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIfconfigException(String message, int statusCode, String body) IfconfigException(String message, Throwable cause) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
IfconfigException
-
IfconfigException
-
-
Method Details
-
statusCode
public int statusCode() -
body
-