that's not a function (in the pedantic sense).
technically a partial function, or you could say that every function is really of the type A -> Exception \/ A
technically a partial function, or you could say that every function is really of the type A -> Exception \/ A