public Message CreateNonCriticalErrorMessage(string To, MeshworkError error) { Message p = new Message(network, MessageType.NonCriticalError); p.To = To; p.Content = error; return p; }
public Message CreateCriticalErrorMessage(Node MessageTo, MeshworkError error) { Message m = new Message(network, MessageType.CriticalError); m.To = MessageTo.NodeID; m.Content = error; return m; }
public Message CreateNonCriticalErrorMessage(Node To, MeshworkError error) { return CreateNonCriticalErrorMessage(To.NodeID, error); }
private void network_ReceivedNonCriticalError(Network network, Node from, MeshworkError error) { try { UpdateConnectionList(); } catch (Exception ex) { LoggingService.LogError(ex); Gui.ShowErrorDialog (ex.ToString(), Gui.MainWindow.Window); } }
internal void SendNonCriticalError(Node node, MeshworkError error) { this.SendRoutedMessage(this.MessageBuilder.CreateNonCriticalErrorMessage(node, error)); }
internal void RaiseReceivedNonCriticalError(Node from, MeshworkError error) { LoggingService.LogWarning("RECEIVE NONCRITICALERROR: " + error.Message); if (ReceivedNonCriticalError != null) ReceivedNonCriticalError(this, from, error); }
internal void ProcessNonCriticalErrorMessage(Node messageFrom, MeshworkError error) { if (error is NotTrustedError) { messageFrom.ClearSessionKey(); messageFrom.RemotelyUntrusted = true; } else if (error is FileTransferError) { string id = ((FileTransferError)error).TransferId; foreach (IFileTransfer transfer in Core.FileTransferManager.Transfers) { if (transfer.Id == id) { ((IFileTransferInternal)transfer).ErrorReceived(messageFrom, (FileTransferError)error); break; } } } else { network.RaiseReceivedNonCriticalError (messageFrom, error); } }
private void network_ReceivedNonCriticalError(Network network, Node from, MeshworkError error) { if (error is DirectoryNotFoundError) { string errorPath = ((DirectoryNotFoundError)error).DirPath; errorPath = errorPath.Substring(1); // FIXME: errorPath doesn't have network part, navigatingTo does!! if (true) //if (errorPath == navigatingTo) { Gui.ShowErrorDialog("Directory not found"); StopNavigating(); // FIXME: Maybe something should reset the state on the directory object } } }