I have a lock manager as a proxy class which implements InvocationHandler
,
I want this lock manager to throw exceptions (e.g. DeadLockException
) to the object which is calling this proxy object, and I want the caller to be able to catch this exception ,
Is that possible in Java ? if it's not what is the best method to make it somehow work