/// <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; }
public ConsensusRuleException(ConsensusError consensusError) : base(consensusError.ToString()) { this.ConsensusError = consensusError; }
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; }