public static RemotingException Read(Serializer iprot) { string message = null; ExceptionType type = ExceptionType.Unknown; message = iprot.ReadString(); type = (ExceptionType)iprot.ReadI32(); return new RemotingException(type, message); }