internal static void SendMessage(object sender, string message, Errors.ErrorType type, string path) { if (!string.IsNullOrWhiteSpace(message)) { DispatcherHelper.CheckBeginInvokeOnUI( () => { Errors.Error error = new Errors.Error(message, type, path); ErrorMessage?.Invoke(sender, error); }); } }
public Response(Errors.Error error) { ErrorID = (int)error; }
public ErrorException(string msg, Icon icon) : base(msg) { Error = new Errors.Error(msg, icon); }
public ErrorException(string msg, [NotNull] Entity ent, Icon icon) : base(msg) { Error = new Errors.Error(msg, ent, icon); }
public ErrorException([NotNull] Errors.Error err) : base(err.Message) { Error = err; }
// Send Response with error code to connection public static void SendResponse(Connection connection, Errors.Error error) { var response = new Response(error); Send(connection, CreateTransmission(response)); }
public ErrorException(string msg, Icon icon) { Error = new Errors.Error(msg, icon); }
public ErrorException(string msg, Entity ent, Icon icon) { Error = new Errors.Error(msg, ent, icon); }