Remove generic exceptions. (#2913)
* Replace instances of Exception with better ones in reflection utils. * Replace instances of Exception with better ones in the websocket project. * Finish replacing generic exceptions. * Tiny tweak to reflection utils for consistency with the .NET library.
This commit is contained in:
@@ -16,7 +16,7 @@ namespace Discord
|
||||
{
|
||||
var token = Environment.GetEnvironmentVariable("DNET_TEST_TOKEN", EnvironmentVariableTarget.Process);
|
||||
if (string.IsNullOrWhiteSpace(token))
|
||||
throw new Exception("The DNET_TEST_TOKEN environment variable was not provided.");
|
||||
throw new ArgumentException("The DNET_TEST_TOKEN environment variable was not provided.");
|
||||
Client = new DiscordRestClient(new DiscordRestConfig()
|
||||
{
|
||||
LogLevel = LogSeverity.Debug,
|
||||
|
||||
Reference in New Issue
Block a user