Class SingleException


  • @Immutable
    public final class SingleException
    extends Object
    Throw single exception out of method.
    Since:
    0.13
    • Constructor Detail

      • SingleException

        public SingleException()
    • Method Detail

      • wrap

        public Object wrap​(org.aspectj.lang.ProceedingJoinPoint point)
                    throws Throwable
        Catch all exceptions and throw a single selected exception.

        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