If you really want to see everything through the FP lens, exceptions are exactly like Result<T, E> with implicit do-notation.