Code example for PrivilegedActionException

Methods: getException

0
                    return Class.forName(className, true, cl);
                } 
            }); 
        } 
        catch (PrivilegedActionException pae) {
            throw new RuntimeException("cannot load the class: " + className, pae.getException());
        } 
    } 
 
    Object readResolve() throws ObjectStreamException {
        try { 
            int n = interfaces.length;
            Class[] infs = new Class[n];
            for (int i = 0; i < n; i++)
                infs[i] = loadClass(interfaces[i]);
 
            ProxyFactory f = new ProxyFactory();
            f.setSuperclass(loadClass(superClass));
            f.setInterfaces(infs);
            ProxyObject proxy = (ProxyObject)f.createClass(filterSignature).newInstance();
            proxy.setHandler(handler);