Adapt exception type of generic throwing iterator
I have an interface ThrowingIterator
, which follows the general contract of Iterator
, except the hasNext()
and next()
methods can throw exceptions:
I have an interface ThrowingIterator
, which follows the general contract of Iterator
, except the hasNext()
and next()
methods can throw exceptions: