15 lines
421 B
Java
15 lines
421 B
Java
package sample.mixins;
|
|
|
|
import java.lang.reflect.InvocationHandler;
|
|
import java.lang.reflect.Method;
|
|
|
|
/**
|
|
* @author jitendra on 8/3/16.
|
|
*/
|
|
public class UnsupportedOperationExceptionInvocationHandler implements InvocationHandler {
|
|
@Override
|
|
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
|
|
throw new UnsupportedOperationException(method + " is not supported");
|
|
}
|
|
}
|