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