Convert a String => Option into a String => Option[ConfigValueLocation] => Either such that after application
- Some(t) becomes _ => Right(t)
- None becomes location => Left(CannotConvert(value, type, "", location)
Convert a String => Try into a String => Option[ConfigValueLocation] => Either such that after application
- Success(t) becomes _ => Right(t)
- Failure(e) becomes location => Left(CannotConvert(value, type, e.getMessage, location)
Useful helpers for building
ConfigConvertinstances and dealing with results.