Class RestExceptionHandler

  • All Implemented Interfaces:<RestException>

    public class RestExceptionHandler
    extends java.lang.Object
    Translates RestExceptions to error responses according to the status that is set in the exception. Response content format: {"type" : "ExceptionType", "message" : "some exception message"}
    Thorben Lindhauer
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description toResponse​(RestException exception)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RestExceptionHandler

        public RestExceptionHandler()
    • Method Detail

      • toResponse

        public toResponse​(RestException exception)
        Specified by:
        toResponse in interface<RestException>