Error handling for non-numeric prices

Uses ruby begin/rescue/end structure described here:
http://rubylearning.com/satishtalim/ruby_exceptions.html