Class ErrorResponseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.shredzone.commons.view.exception.ViewException
-
- org.shredzone.commons.view.exception.ErrorResponseException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PageNotFoundException
@ParametersAreNonnullByDefault public class ErrorResponseException extends ViewException
This exception is thrown when a generic HTTP error happened.- Author:
- Richard "Shred" Körber
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ErrorResponseException(int responseCode)
Creates a newErrorResponseException
.ErrorResponseException(int responseCode, String msg)
Creates a newErrorResponseException
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getResponseCode()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ErrorResponseException
public ErrorResponseException(int responseCode)
Creates a newErrorResponseException
.- Parameters:
responseCode
- HTTP response code
-
ErrorResponseException
public ErrorResponseException(int responseCode, String msg)
Creates a newErrorResponseException
.- Parameters:
responseCode
- HTTP response codemsg
- HTTP response message
-
-
Method Detail
-
getResponseCode
public int getResponseCode()
- Returns:
- HTTP response code
-
-