Class BadStatusCodeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
de.xima.fc.prompt.ms.impl.service.generic_oai.client.model.BadStatusCodeException
- All Implemented Interfaces:
Serializable
Exception thrown when a bad HTTP (e.g. 404 or 500 etc.) status code is received from the server.
- Since:
- 8.5.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the HTTP status code that caused the exception.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BadStatusCodeException
public BadStatusCodeException(int statusCode)
-
-
Method Details
-
statusCode
public int statusCode()Gets the HTTP status code that caused the exception.- Returns:
- The HTTP status code.
-