ice.util.security
Class ProxyException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byice.util.security.ProxyException
All Implemented Interfaces:
Serializable

public final class ProxyException
extends RuntimeException

Utility class to wrap checked exception to pass then out of BoxedCode.run implementation. Usage example which is messy but Java lives not much options here ... Socket socket; try { socket = (Socket)SecurityKit.doPrivileged(new BoxedCode() { public Object run() { try { return new Socket(ip, port); } catch (IOException ex) { throw new ProxyException(ex); } } }); } catch (ProxyException ex) { throw (IOException)ex.getTarget(); }

See Also:
Serialized Form

Constructor Summary
ProxyException(Exception target)
           
 
Method Summary
 Exception getTarget()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProxyException

public ProxyException(Exception target)
Method Detail

getTarget

public Exception getTarget()