public static string GetExceptionDescription(ExceptionId exceptionId) { switch (exceptionId) { case ExceptionId.NoAssemblyProductAttribute: return(SR.Exception_NoAssemblyProductAttribute); } Debug.Assert(false); return(null); }
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); }
public Exception(ExceptionId id, String detailedText) { this.id = id; this.detailedText = detailedText; }
public Exception(ExceptionId id) { this.id = id; detailedText = ""; }
public string GetName() { return(ExceptionId.ToString(CultureInfo.InvariantCulture)); }