Added new exception for manager errors

This commit is contained in:
Tristan B. Velloza Kildaire 2022-05-17 14:42:00 +02:00
parent e45d49f643
commit 29334ef2a0
1 changed files with 13 additions and 1 deletions

View File

@ -3,7 +3,7 @@ module tristanable.exceptions;
import tristanable.manager;
import tristanable.queue : Queue;
public final class TristanableException : Exception
public class TristanableException : Exception
{
this(Manager manager, string message)
{
@ -26,4 +26,16 @@ public final class TristanableException : Exception
return msg;
}
}
/**
* Thrown in relation to problems whereby the Manager is
* at fault, i.e. whereby it may have had a socket die
*/
public final class ManagerError : TristanableException
{
this(Manager man, string msg)
{
super(man, msg);
}
}