Ejemplo n.º 1
0
        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);
                });
            }
        }
Ejemplo n.º 2
0
 public Response(Errors.Error error)
 {
     ErrorID = (int)error;
 }
Ejemplo n.º 3
0
 public ErrorException(string msg, Icon icon) : base(msg)
 {
     Error = new Errors.Error(msg, icon);
 }
Ejemplo n.º 4
0
 public ErrorException(string msg, [NotNull] Entity ent, Icon icon) : base(msg)
 {
     Error = new Errors.Error(msg, ent, icon);
 }
Ejemplo n.º 5
0
 public ErrorException([NotNull] Errors.Error err) : base(err.Message)
 {
     Error = err;
 }
Ejemplo n.º 6
0
        // 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));
        }
Ejemplo n.º 7
0
 public ErrorException(string msg, Icon icon)
 {
     Error = new Errors.Error(msg, icon);
 }
Ejemplo n.º 8
0
 public ErrorException(string msg, Entity ent, Icon icon)
 {
     Error = new Errors.Error(msg, ent, icon);
 }