/// <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;
 }
Beispiel #2
0
 public ConsensusRuleException(ConsensusError consensusError) : base(consensusError.ToString())
 {
     this.ConsensusError = consensusError;
 }
Beispiel #3
0
 public IntegrityValidationFailedException(IPEndPoint peer, ConsensusError error, int banDurationSeconds)
 {
     this.PeerEndPoint       = peer;
     this.Error              = error;
     this.BanDurationSeconds = banDurationSeconds;
 }
 public ConsensusRuleException(ConsensusError consensusError) : base()
 {
     this.ConsensusError = consensusError;
 }