Package com.jcabi.aspects.aj
Class SingleException
- java.lang.Object
-
- com.jcabi.aspects.aj.SingleException
-
@Immutable public final class SingleException extends Object
Throw single exception out of method.- Since:
- 0.13
-
-
Constructor Summary
Constructors Constructor Description SingleException()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
wrap(org.aspectj.lang.ProceedingJoinPoint point)
Catch all exceptions and throw a single selected exception.
-
-
-
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
-
-