@Provider public class GenericExceptionMapper extends Object implements javax.ws.rs.ext.ExceptionMapper<Throwable>
GenericExceptionMapper can be used to map any application
exceptions to REST responses.| Constructor and Description |
|---|
GenericExceptionMapper()
Creates an instance of
GenericExceptionMapper. |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
toResponse(Throwable throwable)
This method is called by the JAX-RS runtime environment when an exception is thrown.
|
public GenericExceptionMapper()
GenericExceptionMapper.public javax.ws.rs.core.Response toResponse(Throwable throwable)
toResponse in interface javax.ws.rs.ext.ExceptionMapper<Throwable>throwable - the exception that was thrownCopyright © 2016 SAP. All Rights Reserved.