(6 secs) This is a simplified version Sequel's current exception class conversion method.
http://github.com/jeremyevans/sequel/blob/3.10.0/lib/sequel/core.rb#L129