Class RestServerExceptionMapper
- java.lang.Object
-
- net.n2oapp.platform.jaxrs.autoconfigure.RestServerExceptionMapper
-
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<Exception>,RestExceptionMapper<Exception>
@Provider public class RestServerExceptionMapper extends Object implements RestExceptionMapper<Exception>
Преобразование любых исключений в ответRestMessageREST сервиса
-
-
Constructor Summary
Constructors Constructor Description RestServerExceptionMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RestMessagetoMessage(Exception exception)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.n2oapp.platform.jaxrs.RestExceptionMapper
getStatus, toResponse
-
-
-
-
Method Detail
-
toMessage
public RestMessage toMessage(Exception exception)
- Specified by:
toMessagein interfaceRestExceptionMapper<Exception>
-
-