public override string ToString() { StringBuilder __sb = new StringBuilder("TDDIAbstractEpsilonScriptExecutionException("); bool __first = true; if (UsedException != null && __isset.UsedException) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("UsedException: "); __sb.Append(UsedException == null ? "<null>" : UsedException.ToString()); } if (__isset.UsedExceptionType) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("UsedExceptionType: "); __sb.Append(UsedExceptionType); } __sb.Append(")"); return(__sb.ToString()); }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("TDDIAbstractEpsilonScriptExecutionException"); oprot.WriteStructBegin(struc); TField field = new TField(); if (UsedException != null && __isset.UsedException) { field.Name = "UsedException"; field.Type = TType.Struct; field.ID = 1; oprot.WriteFieldBegin(field); UsedException.Write(oprot); oprot.WriteFieldEnd(); } if (__isset.UsedExceptionType) { field.Name = "UsedExceptionType"; field.Type = TType.I32; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteI32((int)UsedExceptionType); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }