Class IfconfigException

All Implemented Interfaces:
Serializable

public class IfconfigException extends RuntimeException
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 Details

    • IfconfigException

      public IfconfigException(String message, int statusCode, @Nullable String body)
    • IfconfigException

      public IfconfigException(String message, Throwable cause)
  • Method Details

    • statusCode

      public int statusCode()
    • body

      @Nullable public String body()