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

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

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Since:

  • 1.0.0

Instance Method Summary collapse

Instance Method Details

#nextObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns Can be any type.

Returns:

  • (Object)

    Can be any type.

Raises:

  • (StandardError)

Since:

  • 1.0.0



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