public static ThriftyTransportException.ExceptionType ToThriftyError(this TTransportException.ExceptionType thriftType) { switch (thriftType) { case TTransportException.ExceptionType.AlreadyOpen: return(ThriftyTransportException.ExceptionType.AlreadyOpen); case TTransportException.ExceptionType.EndOfFile: return(ThriftyTransportException.ExceptionType.EndOfFile); case TTransportException.ExceptionType.Interrupted: return(ThriftyTransportException.ExceptionType.Interrupted); case TTransportException.ExceptionType.NotOpen: return(ThriftyTransportException.ExceptionType.NotOpen); case TTransportException.ExceptionType.TimedOut: return(ThriftyTransportException.ExceptionType.TimedOut); case TTransportException.ExceptionType.Unknown: default: return(ThriftyTransportException.ExceptionType.Unknown); } }
public TTransportException(TTransportException.ExceptionType type, string message) : base(message) { this.type = type; }
public TTransportException(TTransportException.ExceptionType type) : this() { this.type = type; }