I feel like I should know how to do this already, but... How do I get
the context in which an error was thrown?

  x = SomeClass

  def dosomething
    x.bar
  end

  begin
    dosomething
  rescue NoMethodError
    p e.context #=> SomeClass (HOW?)
  end

Thanks,
T.