class RubyConverter implements ASTConverter {

  TextPointer getErrorLocation(StandardError e) {
    try {
      IRubyObject diagnostic = (IRubyObject) invokeMethod(e.getException(), "diagnostic", null);
      IRubyObject location = (IRubyObject) invokeMethod(diagnostic, "location", null);
      if (location != null) {
        return new RangeAdapter(runtime, location).toTextRange().start();
      }
    } catch (NoMethodError nme) {
      // location information could not be retrieved from ruby object
    }
    LOG.warn("No location information available for parse error");
    return null;
  }

    RubyConverter(RubyRuntimeAdapter rubyRuntimeAdapter);
  public  RubyConverter();

}