Method: Gruf::Error#set_debug_info

Defined in:
lib/gruf/error.rb

#set_debug_info(detail, stack_trace = []) ⇒ Object

Set the debugging information for the error message

service

Parameters:

  • detail (String)

    The detailed message generated by the exception

  • stack_trace (Array<String>) (defaults to: [])

    An array of strings that represents the exception backtrace generated by the



100
101
102
# File 'lib/gruf/error.rb', line 100

def set_debug_info(detail, stack_trace = [])
  @debug_info = Errors::DebugInfo.new(detail, stack_trace)
end