Stop throwing checked exceptions
We need to change the api to stop throwing checked exceptions.
Pro's by a such change:
- Enable us (java8 users) to utilize streams better
- simplify the code using the api
Currently we dont have support for java8 streams and lambda-expressions. I don´t think this will change in the near future because we need to keep support for older java versions.
Even if the library is not Java 8, you can still use things like a Spliterator (which is default method in Iterable). Unfortunately, most ews-java-api classes do not inherit from Collection, so you are missing things like direct Stream support. That's not someting we can easily fix I guess.
I agree checked exceptions should be removed where possible, they are cumbersome and unnecessary.
:+1: It will be also useful to move classes for exceptions into separate package.