@Provider @InterfaceAudience.Private public class HttpFSExceptionProvider extends ExceptionProvider
ExceptionMapper
implementation that maps HttpFSServer's
exceptions to HTTP status codes.Constructor and Description |
---|
HttpFSExceptionProvider() |
Modifier and Type | Method and Description |
---|---|
protected void |
log(javax.ws.rs.core.Response.Status status,
Throwable throwable)
Logs the HTTP status code and exception in HttpFSServer's log.
|
javax.ws.rs.core.Response |
toResponse(Throwable throwable)
Maps different exceptions thrown by HttpFSServer to HTTP status codes.
|
createResponse, getOneLineMessage
public HttpFSExceptionProvider()
public javax.ws.rs.core.Response toResponse(Throwable throwable)
toResponse
in interface javax.ws.rs.ext.ExceptionMapper<Throwable>
toResponse
in class ExceptionProvider
throwable
- exception thrown.protected void log(javax.ws.rs.core.Response.Status status, Throwable throwable)
log
in class ExceptionProvider
status
- HTTP status code.throwable
- exception thrown.Copyright © 2016 Apache Software Foundation. All Rights Reserved.