Extended Option.
Option.getWithExn value exn
'a option
Exception
'a
Unwrap an option type. If the value is None, throw the exception (exn).