public class OlogException extends Exception
Constructor and Description |
---|
OlogException(javax.ws.rs.core.Response.Status status,
String message)
Creates a new CFException with the specified HTTP return code for this request.
|
OlogException(javax.ws.rs.core.Response.Status status,
String message,
Throwable cause)
Creates a new CFException with the specified HTTP return code for this request,
detail message and cause.
|
Modifier and Type | Method and Description |
---|---|
int |
getResponseStatusCode()
Returns the HTTP Response status code for this exception.
|
javax.ws.rs.core.Response.Status |
getResponseStatusString()
Returns the HTTP Response status code for this exception.
|
javax.ws.rs.core.Response |
toResponse()
Returns a HTTP Response object for this exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public OlogException(javax.ws.rs.core.Response.Status status, String message, Throwable cause)
status
- HTTP return codemessage
- cause
- public OlogException(javax.ws.rs.core.Response.Status status, String message)
status
- HTTP return codemessage
- public javax.ws.rs.core.Response toResponse()
public javax.ws.rs.core.Response.Status getResponseStatusString()
public int getResponseStatusCode()
Copyright © 2010-2014 Michigan State University. All Rights Reserved.