Update get int range example

I find that this example is not clear enuough as the function must
return always the interator. I believe that we need to find out a
simpler one.
Rename from_exception to from_error