Class HttpErrorResponseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.spongepowered.gradle.vanilla.resolver.HttpErrorResponseException
-
- All Implemented Interfaces:
java.io.Serializable
public class HttpErrorResponseException extends java.io.IOExceptionAn exception thrown for any response code except200.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HttpErrorResponseException(java.net.URL source, int errorCode, java.lang.String message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description interrorCode()The error code returned by the server.java.lang.StringgetMessage()java.net.URLsource()TheURLthat a connection was made to.
-
-
-
Method Detail
-
source
public java.net.URL source()
TheURLthat a connection was made to.- Returns:
- the source url
-
errorCode
public int errorCode()
The error code returned by the server.- Returns:
- the error code
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessagein classjava.lang.Throwable
-
-