私は時折 OAuthException を取得しており、それをキャッチしようとしています:
rescue OAuthException => exception
# exception handling code here
しかし、私は得る:
rescue in <main>': uninitialized constant OAuthException (NameError)
私が見逃しているものはありますか?
====更新
これが私が現在それを解決した方法です。私が message.match() をしなければならないという事実は、少しハックなようです。
rescue GemModule::GemSubmodule::APIError => exception
if exception.message.match("OAuthException")
改善点はありますか?