public class ExceptionHandler<T extends Throwable> extends Object implements javax.ws.rs.ext.ExceptionMapper<T>
details
is true or MetaDataException
then response body is also sent.MetaDataException
Constructor and Description |
---|
ExceptionHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
isDetails()
If true will bind the Full exception object to the
Response |
boolean |
isLogOnServer()
If true will log the error on server
|
void |
setDetails(boolean details)
If true will bind the Full exception object to the
Response |
void |
setLogOnServer(boolean logOnServer)
If true will log the error on server
|
javax.ws.rs.core.Response |
toResponse(T e) |
public javax.ws.rs.core.Response toResponse(T e)
public boolean isDetails()
Response
public void setDetails(boolean details)
Response
public boolean isLogOnServer()
public void setLogOnServer(boolean logOnServer)
Copyright © 2018. All rights reserved.