Cause error to inherit from StandardError rather than Exception.

This is best practice as if you catch Exception, you would also catch Ctrl-C, Out of Memory, or any other critical errors.

http://rubylearning.com/satishtalim/ruby_exceptions.html