def exception_context(exception)
      # This extra check exists because the exception itself is not expected to
      # convert to a hash.
      object = exception if exception.respond_to?(:to_honeybadger_context)
      object ||= {}.freeze

      Context(object)
    end
def exception_context(exception)
      # This extra check exists because the exception itself is not expected to
      # convert to a hash.
      object = exception if exception.respond_to?(:to_honeybadger_context)
      object ||= {}.freeze

      Context(object)
    end
Get optional context from exception.

 Returns the Hash context.