Code example for KeyException

0
        KeyException dExc = new KeyException(msgs[0], cause); 
        String msg = null; 
        Throwable th = null; 
        return new Object[] { new KeyException(), new KeyException(msg), 
                new KeyException(msgs[1]), 
                new KeyException(new Throwable()), new KeyException(th), 
                new KeyException(msgs[1], dExc) }; 
    } 
 
}