skype.SkypeUserNotFound Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of skype2gmail Show documentation
Show all versions of skype2gmail Show documentation
Send skype chat history to a gmail account
The newest version!
package skype;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
public class SkypeUserNotFound implements InvocationHandler {
public static SkypeUser produce(String userDisplay) {
return (SkypeUser) Proxy.newProxyInstance(
SkypeUser.class.getClassLoader(),
new Class[]{ SkypeUser.class},
new SkypeUserNotFound(userDisplay));
}
private final String userDisplay;
public SkypeUserNotFound(String userDisplay) {
this.userDisplay = userDisplay;
}
@Override
public Object invoke(Object proxy, Method method, Object[] args)
throws Throwable {
throw new SkypeMessageParsingException(
"User %s was found on chat, but was not among its posters!",
userDisplay);
}
}