2022-01-12 15:28:08 +00:00
|
|
|
/**
|
|
|
|
* Exceptions
|
|
|
|
*
|
|
|
|
* Base definitions for exceptions appear here
|
|
|
|
*/
|
|
|
|
module tasky.exceptions;
|
|
|
|
|
|
|
|
import std.exception;
|
|
|
|
|
|
|
|
public abstract class TaskyException : Exception
|
|
|
|
{
|
|
|
|
this(string msg)
|
|
|
|
{
|
|
|
|
super("TaskyException:"~msg);
|
|
|
|
}
|
|
|
|
}
|
2022-05-10 14:24:42 +01:00
|
|
|
|
|
|
|
public final class SubmissionException : TaskyException
|
|
|
|
{
|
|
|
|
this(string msg)
|
|
|
|
{
|
|
|
|
super("SubmissionException: "~msg);
|
|
|
|
}
|
2022-05-17 18:13:12 +01:00
|
|
|
}
|
|
|
|
|
2022-05-24 18:40:45 +01:00
|
|
|
public final class DescriptorException : TaskyException
|
|
|
|
{
|
|
|
|
this(string msg)
|
|
|
|
{
|
|
|
|
super("DescriptorException: "~msg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-17 18:13:12 +01:00
|
|
|
/**
|
|
|
|
* Raised if the underlying socket dies (connection closes)
|
|
|
|
* or (TODO: check that Tasky shutdown does not cause this to weirdly go off by calling tmanager.shutdown())
|
|
|
|
*/
|
|
|
|
public final class SessionError : TaskyException
|
|
|
|
{
|
|
|
|
this(string msg)
|
|
|
|
{
|
|
|
|
super("SessionError: "~msg);
|
|
|
|
}
|
2022-05-10 14:24:42 +01:00
|
|
|
}
|