Class RestFailureMarshaller
java.lang.Object
com.peterphi.std.guice.web.rest.jaxrs.exception.RestFailureMarshaller
Takes a Throwable and marshalls it as a
N.B. may be used without Guice
RestFailure
N.B. may be used without Guice
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Render a Throwable as a RestFailurevoid
setStackTraces
(boolean stackTraces)
-
Constructor Details
-
RestFailureMarshaller
public RestFailureMarshaller()
-
-
Method Details
-
renderFailure
Render a Throwable as a RestFailure- Parameters:
e
-- Returns:
-
isStackTraces
public boolean isStackTraces() -
setStackTraces
public void setStackTraces(boolean stackTraces)
-