From 29277e389922e47edb7d6acca223e3d5a3c76c4f Mon Sep 17 00:00:00 2001 From: Noikoio Date: Sat, 1 Dec 2018 00:54:34 -0800 Subject: [PATCH] Fix incorrect exceptions being thrown --- RegexBot/Module/VoteTempChannel/Configuration.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/RegexBot/Module/VoteTempChannel/Configuration.cs b/RegexBot/Module/VoteTempChannel/Configuration.cs index cd7916f..bc228e1 100644 --- a/RegexBot/Module/VoteTempChannel/Configuration.cs +++ b/RegexBot/Module/VoteTempChannel/Configuration.cs @@ -1,7 +1,6 @@ using Newtonsoft.Json.Linq; using Noikoio.RegexBot.ConfigItem; using System; -using System.Linq; using System.Text.RegularExpressions; namespace Noikoio.RegexBot.Module.VoteTempChannel @@ -61,10 +60,10 @@ namespace Noikoio.RegexBot.Module.VoteTempChannel if (vptProp == null) throw new RuleImportException("'VotePassThreshold' must be specified."); if (vptProp.Type != JTokenType.Integer) - throw new NotImplementedException("'VotePassThreshold' must be an integer."); + throw new RuleImportException("'VotePassThreshold' must be an integer."); VotePassThreshold = vptProp.Value(); if (VotePassThreshold <= 0) - throw new NotImplementedException("'VotePassThreshold' must be greater than zero."); + throw new RuleImportException("'VotePassThreshold' must be greater than zero."); ChannelDuration = ParseTimeConfig(j, "ChannelDuration"); VotingDuration = ParseTimeConfig(j, "VotingDuration");