Added new exception for manager errors
This commit is contained in:
parent
e45d49f643
commit
29334ef2a0
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue