class Airbrake::Promise
def rescue(&block)
-
(self)
-
Other tags:
- Yieldparam: error -
Other tags:
- Yield: - The error message from the API
def rescue(&block) @mutex.synchronize do if @value.key?('error') yield(@value['error']) return self end @on_rejected << block end self end