Class JaxRsErrorFactory


  • public final class JaxRsErrorFactory
    extends Object
    Static utility class to standardise the instantiation of Error objects from WebApplicationExceptions.
    • Method Detail

      • from

        public static Error from​(javax.ws.rs.WebApplicationException ex)
        Create an Error object from a WebApplicationException.
        Parameters:
        ex - the exception object
        Returns:
        a newly constructed Error