Updated Module engine
This commit is contained in:
15
DiscordBotCore/Others/Exceptions/ModuleNotFound.cs
Normal file
15
DiscordBotCore/Others/Exceptions/ModuleNotFound.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using DiscordBotCore.Interfaces.Modules;
|
||||
|
||||
namespace DiscordBotCore.Others.Exceptions;
|
||||
|
||||
public class ModuleNotFound : Exception
|
||||
{
|
||||
public ModuleNotFound(string moduleName) : base($"Module not found: {moduleName}")
|
||||
{
|
||||
}
|
||||
|
||||
public ModuleNotFound(ModuleType moduleType) : base($"No module with type {moduleType} found")
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user