Class ShieldBreakAPI.ApiException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.sbmc.freezy.shieldbreakapi.ShieldBreakAPI.ApiException
- All Implemented Interfaces:
Serializable
- Enclosing class:
ShieldBreakAPI
Exception thrown when the API returns an error.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ApiException
Constructs an ApiException.- Parameters:
statusCode- the HTTP status codemessage- the error message
-
-
Method Details
-
getStatusCode
public int getStatusCode()Returns the HTTP status code.- Returns:
- the HTTP status code
-