Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Once the Exception is thrown Lens uses JAX-RS's (link) https://docs.oracle.com/javaee/6/api/javax/ws/rs/ext/ExceptionMapper.html  ) ExceptionMapper capability to convert exceptions to appropriate response. The Class LensExceptionMapper implements the ExceptionMapper interface and for a given exception it prepares the appropriate Response. It sets the Http Status code of the response using 

...