@Override
  public int compareTo(PythonUnhandledException other) {
    if (!getClass().equals(other.getClass())) {
      return getClass().getName().compareTo(other.getClass().getName());
    }

    int lastComparison = 0;

    lastComparison = java.lang.Boolean.compare(isSetTraceback(), other.isSetTraceback());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetTraceback()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.traceback, other.traceback);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    return 0;
  }
@Override
  public int compareTo(PythonUnhandledException other)