Class ExceptionsLogger


  • @Immutable
    public final class ExceptionsLogger
    extends Object
    Logs all exceptions thrown out of a method.
    Since:
    0.1.10
    See Also:
    LogExceptions
    • Constructor Detail

      • ExceptionsLogger

        public ExceptionsLogger()
    • Method Detail

      • wrap

        public Object wrap​(org.aspectj.lang.ProceedingJoinPoint point)
                    throws Throwable
        Catch exception and log it.

        Try NOT to change the signature of this method, in order to keep it backward compatible.

        Parameters:
        point - Joint point
        Returns:
        The result of call
        Throws:
        Throwable - If something goes wrong inside