fponticelli / thx.core

Super-charged standard library for Haxe.
http://thx-lib.org
MIT License
124 stars 43 forks source link

Allow customizing error messages when throwing for None option #216

Closed mlms13 closed 8 years ago

mlms13 commented 8 years ago

Now you can provide your own error to the existing getOrThrow. Alternatively, there's a new getOrFail that accepts a string. So pure and safe.