Exemplo n.º 1
0
        /// <inheritdoc />
        public override bool Equals(object obj)
        {
            ConsensusError item = obj as ConsensusError;

            return((item != null) && (this.Code.Equals(item.Code)));
        }
Exemplo n.º 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;
 }