Beispiel #1
0
        /// <inheritdoc />
        public override bool Equals(object obj)
        {
            ConsensusError item = obj as ConsensusError;

            return((item != null) && (this.Code.Equals(item.Code)));
        }
Beispiel #2
0
 /// <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;
 }