Class MinecraftClientHttpException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.mojang.authlib.exceptions.MinecraftClientException
com.mojang.authlib.exceptions.MinecraftClientHttpException
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class MinecraftClientException
MinecraftClientException.ErrorType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprivate final ErrorResponseprivate final intstatic final intFields inherited from class MinecraftClientException
type -
Constructor Summary
ConstructorsConstructorDescriptionMinecraftClientHttpException(int status) MinecraftClientHttpException(int status, ErrorResponse response) -
Method Summary
Modifier and TypeMethodDescriptiongetError()private static StringgetErrorMessage(int status, ErrorResponse response) intprivate booleantoString()Methods inherited from class MinecraftClientException
getTypeMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
UNAUTHORIZED
public static final int UNAUTHORIZED- See Also:
-
FORBIDDEN
public static final int FORBIDDEN- See Also:
-
status
private final int status -
response
-
-
Constructor Details
-
MinecraftClientHttpException
public MinecraftClientHttpException(int status) -
MinecraftClientHttpException
-
-
Method Details
-
getStatus
public int getStatus() -
getResponse
-
toString
-
toAuthenticationException
- Overrides:
toAuthenticationExceptionin classMinecraftClientException
-
getError
-
getErrorMessage
-
hasError
-