Class: PassaporteWeb::Client::ExceptionWrapper

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/passaporte_web/client/exception_wrapper.rb

Overview

Delegator class which intercepts exceptions raised by OAuth::AccessToken methods and wraps them in [PassaporteWeb::Client::Exception] exceptions.

API

Documentation:

Instance Method Summary collapse

Instance Method Details

#refresh(*args) ⇒ Object


8
9
10
# File 'lib/passaporte_web/client/exception_wrapper.rb', line 8

def refresh(*args)
  call_with_rescue { super }
end

#request(*args, &block) ⇒ Object


12
13
14
# File 'lib/passaporte_web/client/exception_wrapper.rb', line 12

def request(*args, &block)
  call_with_rescue { super }
end