Module: Services::Base::ExceptionWrapper
- Defined in:
- lib/services/modules/exception_wrapper.rb
Instance Method Summary collapse
Instance Method Details
#call(*args, **kwargs) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/services/modules/exception_wrapper.rb', line 4 def call(*args, **kwargs) super rescue StandardError => e if e.class <= self.class::Error raise e else raise self.class::Error, e end end |