Interface ExceptionResponseFactory

  • All Known Implementing Classes:
    DefaultExceptionResponseFactory

    public interface ExceptionResponseFactory
    Factory to create the right type of response resource for an exception.
    Since:
    2.0.0
    Author:
    Paul Klos
    • Method Detail

      • create

        ErrorResponseResource create​(Throwable throwable)
        Create the response resource.
        Parameters:
        throwable - the exception
        Returns:
        the error resource