use ruby 1.8-safe exception class