private void ConnectResultAction(bool flg, Exception e, Action <bool> result) { if (!flg) { if (e is NpCloudException) { NpCloudException ex = (NpCloudException)e; this.mErrorCode = ex.ExitCode; this.mErrorMsg = ex.Message; } else { string text = string.Format("Message = {0}\nStackTrace = {1}", e.Message, e.StackTrace); this.mErrorCode = 700; this.mErrorMsg = text; } } this.mIsConnectAsync = true; this.mIsConnectAsyncResult = flg; }
private void SetErrorData(NpCloudException e) { this.mErrorCode = e.ExitCode; this.mErrorMsg = e.Message; }