Code example for InvalidKeySpecException

0
        Exception cause = new Exception(msgs[1]); 
        InvalidKeySpecException dExc = new InvalidKeySpecException(msgs[0], cause); 
        String msg = null; 
        Throwable th = null; 
        return new Object[] { new InvalidKeySpecException(), new InvalidKeySpecException(msg), 
                new InvalidKeySpecException(msgs[1]), 
                new InvalidKeySpecException(new Throwable()), new InvalidKeySpecException(th), 
                new InvalidKeySpecException(msgs[1], dExc) }; 
    } 
 
    public static void main(String[] args) { 
        junit.textui.TestRunner.run(InvalidKeySpecExceptionTest.class); 
    } 
}