Exemple #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="errorType"></param>
 /// <param name="owner"></param>
 /// <param name="exception"></param>
 public ErrorInfoData(
     ErrorInfoType errorType,
     Control owner,
     Exception exception)
 {
     this.Owner     = owner;
     this.Exception = exception;
 }
Exemple #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="errorType"></param>
 /// <param name="owner"></param>
 /// <param name="message"></param>
 public ErrorInfoData(
     ErrorInfoType errorType,
     Control owner,
     string message)
 {
     this.ErrorType = errorType;
     this.Owner     = owner;
     this.Message   = message;
 }
Exemple #3
0
 public ErrorInfo(ErrorInfoType type)
 {
     try
     {
         _type = type;
     }
     catch (Exception exception)
     {
         Log.Error(exception);
     }
 }
Exemple #4
0
 public ErrorInfo(ErrorInfoType type, string message)
 {
     try
     {
         _type    = type;
         _message = message;
     }
     catch (Exception exception)
     {
         Log.Error(exception);
     }
 }
Exemple #5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="errorType"></param>
 /// <param name="owner"></param>
 /// <param name="exception"></param>
 /// <param name="image"></param>
 /// <param name="targetControl"></param>
 public ErrorInfoData(
     ErrorInfoType errorType,
     Control owner,
     Exception exception,
     Image image,
     Control targetControl)
 {
     this.Owner         = owner;
     this.Exception     = exception;
     this.ErrorType     = errorType;
     this.ScreenImage   = image;
     this.TargetControl = targetControl;
 }
Exemple #6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="errorType"></param>
 /// <param name="owner"></param>
 /// <param name="exception"></param>
 /// <param name="image"></param>
 /// <param name="targetControl"></param>
 /// <param name="className"></param>
 /// <param name="filedName"></param>
 public ErrorInfoData(
     ErrorInfoType errorType,
     Control owner,
     Exception exception,
     Image image,
     Control targetControl,
     string className,
     string filedName)
 {
     this.Owner         = owner;
     this.Exception     = exception;
     this.ErrorType     = errorType;
     this.ScreenImage   = image;
     this.TargetControl = targetControl;
     this.ClassName     = className;
     this.FieldName     = filedName;
 }
Exemple #7
0
        public ErrorInfo(ErrorInfoType type, Exception exception)
        {
            try
            {
                if (exception is AuthenticationException)
                {
                    Copy(((AuthenticationException)exception).ErrorInfo);
                }

                _type    = type;
                _message = exception.Message;
            }
            catch (Exception exception2)
            {
                Log.Error(exception2);
            }
        }
Exemple #8
0
        public void Copy(ErrorInfo errorInfo)
        {
            try
            {
                _type    = errorInfo.Type;
                _message = errorInfo.Message;

                for (int i = 0; i < errorInfo.Details.Count; i++)
                {
                    DetailInfo detailInfo = errorInfo.Details[i].Copy();

                    Details.Add(detailInfo);
                }
            }
            catch (Exception exception)
            {
                Log.Error(exception);
            }
        }
 public ErrorInfo(ErrorInfoType type)
 {
     try
       {
     _type = type;
       }
       catch (Exception exception)
       {
     Log.Error(exception);
       }
 }
        public void Copy(ErrorInfo errorInfo)
        {
            try
              {
            _type = errorInfo.Type;
            _message = errorInfo.Message;

            for (int i = 0; i < errorInfo.Details.Count; i++)
            {
              DetailInfo detailInfo = errorInfo.Details[i].Copy();

              Details.Add(detailInfo);
            }
              }
              catch (Exception exception)
              {
            Log.Error(exception);
              }
        }
        public ErrorInfo(ErrorInfoType type, Exception exception)
        {
            try
              {
            if (exception is AuthenticationException)
            {
              Copy(((AuthenticationException)exception).ErrorInfo);
            }

            _type = type;
            _message = exception.Message;
              }
              catch (Exception exception2)
              {
            Log.Error(exception2);
              }
        }
 public ErrorInfo(ErrorInfoType type, string message)
 {
     try
       {
     _type = type;
     _message = message;
       }
       catch (Exception exception)
       {
     Log.Error(exception);
       }
 }