@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, getOneLineMessagepublic javax.ws.rs.core.Response toResponse(Throwable throwable)
toResponse in interface javax.ws.rs.ext.ExceptionMapper<Throwable>toResponse in class ExceptionProviderthrowable - exception thrown.protected void log(javax.ws.rs.core.Response.Status status,
Throwable throwable)
log in class ExceptionProviderstatus - HTTP status code.throwable - exception thrown.Copyright © 2008–2022 Apache Software Foundation. All rights reserved.