Replace exceptions with options