I messed up, but I fixed it
I just realized that the event of ConfigFileManager needs a method that only accepts an Exception type parameter
This commit is contained in:
@@ -61,10 +61,15 @@ class Program
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ErrorOccured(Exception e, string errorName = "Error")
|
static void ErrorOccured(Exception e, string errorName)
|
||||||
{
|
{
|
||||||
Console.WriteLine($"{errorName}: {e}\nMore details:\n{e.ToString()}");
|
Console.WriteLine($"{errorName}: {e}\nMore details:\n{e.ToString()}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void ErrorOccured(Exception e)
|
||||||
|
{
|
||||||
|
Console.WriteLine($"Unexpected error: {e}\nMore details:\n{e.ToString()}");
|
||||||
|
}
|
||||||
|
|
||||||
static void HelpMessage()
|
static void HelpMessage()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user