Package wtf.choco.veinminer.update
Class UpdateFailException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
wtf.choco.veinminer.update.UpdateFailException
- All Implemented Interfaces:
Serializable
An exception thrown when an unexpected HTTP status code was returned when performing
an update check and no other exception is applicable.
- See Also:
-
Constructor Summary
ConstructorDescriptionUpdateFailException
(int statusCode, String message) Construct a newUpdateFailException
. -
Method Summary
Modifier and TypeMethodDescriptionint
Get the status code that was returned.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UpdateFailException
Construct a newUpdateFailException
.- Parameters:
statusCode
- the status code that was returnedmessage
- the message to send
-
-
Method Details
-
getMessage
- Overrides:
getMessage
in classThrowable
-
getStatusCode
public int getStatusCode()Get the status code that was returned.- Returns:
- the status code
-