/// <inheritdoc /> public override bool Equals(object obj) { ConsensusError item = obj as ConsensusError; return((item != null) && (this.Code.Equals(item.Code))); }
/// <summary> /// Initialize a new instance of <see cref="ConsensusErrorException"/>. /// </summary> /// <param name="error">The error that triggered this exception.</param> public ConsensusErrorException(ConsensusError error) : base(error.Message) { this.ConsensusError = error; }