Class WebServiceExceptionLogger


  • public class WebServiceExceptionLogger
    extends Object
    Controls error logging of exceptions thrown by the WebService application (provider, impl, etc.) This class logs errors for all non-checked exceptions. This class logs extensive debug information for all exceptions.
    • Constructor Detail

      • WebServiceExceptionLogger

        public WebServiceExceptionLogger()
    • Method Detail

      • log

        public static void log​(Method method,
                               Throwable throwable,
                               boolean logFully,
                               Class serviceImplClass,
                               Object serviceInstance,
                               Object[] args)
        Logs an error if the exception thrown by @WebMethod m is not a checked exception. If debug logging is enabled, all exceptions are logged.
        Parameters:
        method -
        throwable -
        logFully - (if true then the exception is logged, otherwise only the class and stack is logged)
        serviceImplClass - class of service implementation
        serviceInstance -
        args - Object[] arguments pass to method