jklmli / monapt

Options, Tries, and Futures for JavaScript / TypeScript
MIT License
172 stars 13 forks source link

Create monapt.NoSuchElementException #1

Closed ksikka closed 9 years ago

jklmli commented 9 years ago

Can you remove the dist/ files? I'll build them before drafting a new release.

Proposed commit message: feat: add NoSuchElementException.

Future filter failures have a slightly different/clearer error message:

scala> Future { "Hello!" } filter { case e => e != "Hello!" } onFailure { case e => println(e) }
java.util.NoSuchElementException: Future.filter predicate is not satisfied