Method: GraphQL::Backtrace::Trace#execute_multiplex
- Defined in:
- lib/graphql/backtrace/trace.rb
permalink #execute_multiplex(multiplex:) ⇒ Object
[View source] [View on GitHub]
46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/graphql/backtrace/trace.rb', line 46 def execute_multiplex(multiplex:) super rescue StandardError => err # This is an unhandled error from execution, # Re-raise it with a GraphQL trace. potential_context = @__backtrace_last_context if potential_context.is_a?(GraphQL::Query::Context) || potential_context.is_a?(Backtrace::Frame) raise TracedError.new(err, potential_context) else raise end end |