This commit is contained in:
2022-05-17 13:42:01 +03:00
parent 80aef8b6e0
commit c719eaf4fd
5 changed files with 37 additions and 3 deletions

View File

@@ -66,6 +66,17 @@ namespace PluginManager.Others.Exceptions
{
}
/// <summary>
/// The APIException constructor
/// </summary>
/// <param name="message">The error message</param>
/// <param name="errorLocation">The class where the error was thrown</param>
public APIException(string message, Type errorLocation) : base(message)
{
Function = errorLocation.FullName;
}
/// <summary>
/// Method to print the error to <see cref="Console"/>
/// </summary>