creates an instance of failure wrapping the provided throwable . best used in conjunction with statically importing this method . import static javascalautils.trycompanion.failure ; try < string > tf = failure new exception `` bad mojo ! '' ; concode_field_sep PlaceHolder placeHolder concode_field_sep Try<Unit> Try concode_elem_sep Try<T> Try concode_elem_sep Success<T> Success
Failure < T > function ( Throwable arg0 ) { return new Failure < > ( arg0 ) ; }