Class: ConvenientService::Common::Plugins::CleansExceptionBacktrace::Middleware

Inherits:
MethodChainMiddleware
  • Object
show all
Defined in:
lib/convenient_service/common/plugins/cleans_exception_backtrace/middleware.rb

Instance Method Summary collapse

Instance Method Details

#nextObject

Returns Can be any type.

Returns:

  • (Object)

    Can be any type.

Raises:

  • (StandardError)


20
21
22
23
24
25
26
27
# File 'lib/convenient_service/common/plugins/cleans_exception_backtrace/middleware.rb', line 20

def next(...)
  chain.next(...)
rescue => exception
  clean_backtrace!(exception)
  clean_backtrace!(exception.cause) if exception.cause

  raise
end