Package com.peterphi.std.guice.web.rest.jaxrs.exception
package com.peterphi.std.guice.web.rest.jaxrs.exception
-
ClassDescriptionA RestFailureRenderer that uses the configured templating engine to render exceptions destined for humans.A HTML renderer that will only emit HTML when the caller lists text/html as their primary Accept header valueTakes an Exception thrown by a JAX-RS provider and renders it prettilyAn exception that contains the exact Response that should be sent back to the clientTakes a Throwable and marshalls it as a
RestFailure
N.B.A simple renderer that renders an XML form of the RestFailure object by letting the JAX-RS implementation serialise it
Sets the X-Rich-Exception flag so that our code can understand and intelligently reconstruct an exception client-side