org.openrdf.http.object.exceptions
Class ResponseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.openrdf.http.object.exceptions.ResponseException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- BadGateway, BadRequest, Conflict, GatewayTimeout, Gone, InternalServerError, MethodNotAllowed, NotAcceptable, NotFound, NotImplemented, ServiceUnavailable, UnsupportedMediaType
public abstract class ResponseException
- extends RuntimeException
Base class for HTTP exceptions.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ResponseException
public ResponseException(String message)
ResponseException
public ResponseException(String message,
Throwable cause)
ResponseException
public ResponseException(Throwable cause)
ResponseException
public ResponseException(String message,
String stack)
create
public static ResponseException create(org.apache.http.HttpResponse resp)
throws IOException
- Throws:
IOException
create
public static ResponseException create(int status,
String msg,
String stack)
getStatusCode
public abstract int getStatusCode()
isCommon
public abstract boolean isCommon()
printTo
public void printTo(PrintWriter writer)
getShortMessage
public String getShortMessage()
getLongMessage
public String getLongMessage()
getDetailMessage
public String getDetailMessage()
Copyright © 2004-2011 James Leigh Services Inc.. All Rights Reserved.