Class RestFailureMarshaller

java.lang.Object
com.peterphi.std.guice.web.rest.jaxrs.exception.RestFailureMarshaller

public class RestFailureMarshaller extends Object
Takes a Throwable and marshalls it as a RestFailure
N.B. may be used without Guice
  • Constructor Details

    • RestFailureMarshaller

      public RestFailureMarshaller()
  • Method Details

    • renderFailure

      public RestFailure renderFailure(Throwable e)
      Render a Throwable as a RestFailure
      Parameters:
      e -
      Returns:
    • isStackTraces

      public boolean isStackTraces()
    • setStackTraces

      public void setStackTraces(boolean stackTraces)