Code example for PrivilegedActionException

Methods: getException

0
     
    public void assertDeserialized(Serializable reference, Serializable otest) {
         
        // common checks 
        THROWABLE_COMPARATOR.assertDeserialized(reference, otest);
         
        // class specific checks 
        PrivilegedActionException ref = (PrivilegedActionException)reference;
        PrivilegedActionException test = (PrivilegedActionException)otest;
        if( ref.getException() == null ) {
            assertNull( test.getException() );
        } else { 
            THROWABLE_COMPARATOR.assertDeserialized(ref.getException(), test
                    .getException());
        } 
    } 
     
 
}