Class NotFoundExceptionMapper

java.lang.Object
ru.i_novus.ms.rdm.api.provider.NotFoundExceptionMapper
All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<NotFoundException>, net.n2oapp.platform.jaxrs.RestExceptionMapper<NotFoundException>

@Provider
public class NotFoundExceptionMapper
extends java.lang.Object
implements net.n2oapp.platform.jaxrs.RestExceptionMapper<NotFoundException>
  • Constructor Summary

    Constructors 
    Constructor Description
    NotFoundExceptionMapper​(net.n2oapp.platform.i18n.Messages messages)  
  • Method Summary

    Modifier and Type Method Description
    javax.ws.rs.core.Response.Status getStatus()  
    net.n2oapp.platform.jaxrs.RestMessage toMessage​(NotFoundException 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

    toResponse
  • Constructor Details

  • Method Details

    • toMessage

      public net.n2oapp.platform.jaxrs.RestMessage toMessage​(NotFoundException exception)
      Specified by:
      toMessage in interface net.n2oapp.platform.jaxrs.RestExceptionMapper<NotFoundException>
    • getStatus

      public javax.ws.rs.core.Response.Status getStatus()
      Specified by:
      getStatus in interface net.n2oapp.platform.jaxrs.RestExceptionMapper<NotFoundException>