001package io.avaje.inject.aop; 002 003/** 004 * Exception occurring during method interception. 005 * <p> 006 * When using aspects and {@link MethodInterceptor} any throwable that is undeclared on the 007 * method is caught and re-throw as an InvocationException. 008 */ 009public class InvocationException extends RuntimeException { 010 011 /** 012 * Create with a given cause. 013 */ 014 public InvocationException(String message) { 015 super(message); 016 } 017 018 /** 019 * Create with a given cause. 020 */ 021 public InvocationException(Throwable cause) { 022 super(cause); 023 } 024 025 /** 026 * Create with a given message and cause. 027 */ 028 public InvocationException(String message, Throwable cause) { 029 super(message, cause); 030 } 031}