ews-java-api icon indicating copy to clipboard operation
ews-java-api copied to clipboard

Stop throwing checked exceptions

Open ahaarrestad opened this issue 11 years ago • 3 comments

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

ahaarrestad avatar Feb 13 '15 05:02 ahaarrestad

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.

serious6 avatar Feb 17 '15 09:02 serious6

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.

MikeN123 avatar Feb 17 '15 11:02 MikeN123

:+1: It will be also useful to move classes for exceptions into separate package.

vbauer avatar Mar 04 '15 14:03 vbauer