Пример #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);
                });
            }
        }
Пример #2
0
 public Response(Errors.Error error)
 {
     ErrorID = (int)error;
 }
Пример #3
0
 public ErrorException(string msg, Icon icon) : base(msg)
 {
     Error = new Errors.Error(msg, icon);
 }
Пример #4
0
 public ErrorException(string msg, [NotNull] Entity ent, Icon icon) : base(msg)
 {
     Error = new Errors.Error(msg, ent, icon);
 }
Пример #5
0
 public ErrorException([NotNull] Errors.Error err) : base(err.Message)
 {
     Error = err;
 }
Пример #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));
        }
Пример #7
0
 public ErrorException(string msg, Icon icon)
 {
     Error = new Errors.Error(msg, icon);
 }
Пример #8
0
 public ErrorException(string msg, Entity ent, Icon icon)
 {
     Error = new Errors.Error(msg, ent, icon);
 }