Exemple #1
0
        public static string GetExceptionDescription(ExceptionId exceptionId)
        {
            switch (exceptionId)
            {
            case ExceptionId.NoAssemblyProductAttribute:
                return(SR.Exception_NoAssemblyProductAttribute);
            }

            Debug.Assert(false);
            return(null);
        }
Exemple #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ExceptionMessage.Length != 0)
            {
                hash ^= ExceptionMessage.GetHashCode();
            }
            if (ExceptionId.Length != 0)
            {
                hash ^= ExceptionId.GetHashCode();
            }
            if (timestamp_ != null)
            {
                hash ^= Timestamp.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (user_ != null)
            {
                hash ^= User.GetHashCode();
            }
            if (ExceptionMessage.Length != 0)
            {
                hash ^= ExceptionMessage.GetHashCode();
            }
            if (ExceptionId.Length != 0)
            {
                hash ^= ExceptionId.GetHashCode();
            }
            if (JWToken.Length != 0)
            {
                hash ^= JWToken.GetHashCode();
            }
            return(hash);
        }
Exemple #4
0
 public Exception(ExceptionId id, String detailedText)
 {
     this.id           = id;
     this.detailedText = detailedText;
 }
Exemple #5
0
 public Exception(ExceptionId id)
 {
     this.id      = id;
     detailedText = "";
 }
Exemple #6
0
 public string GetName()
 {
     return(ExceptionId.ToString(CultureInfo.InvariantCulture));
 }