Class AbstractErrorTemplateMapper<T extends Throwable>

    • Constructor Detail

      • AbstractErrorTemplateMapper

        public AbstractErrorTemplateMapper()
    • Method Detail

      • getErrorModel

        protected Object getErrorModel​(T throwable)
        Get a model for error template. Default value is the throwable itself.
        Parameters:
        throwable - throwable raised during processing a resource method.
        Returns:
        a model for error template.
      • getErrorStatus

        protected Response.Status getErrorStatus​(T throwable)
        Get a response status of to-be-processed error template. Default value is Response.Status.OK.
        Parameters:
        throwable - throwable raised during processing a resource method.
        Returns:
        response status of error response.