Exceptions

- Documented `ErrorType` and all its members
- Documented `TristanableException`
This commit is contained in:
Tristan B. Velloza Kildaire 2023-04-06 15:46:34 +02:00
parent 79fee5bd7e
commit 07d47551ae
1 changed files with 19 additions and 0 deletions

View File

@ -3,13 +3,32 @@
*/
module tristanable.exceptions;
/**
* The type of sub-error of the `TristanableException`
*/
public enum ErrorType
{
/**
* If the requested queue could not be found
*/
QUEUE_NOT_FOUND,
/**
* If the queue wanting to be registered has already
* been registered under the same tag
*/
QUEUE_ALREADY_EXISTS,
/**
* If no default queue is configured
*/
NO_DEFAULT_QUEUE
}
/**
* Any sort of error that occurs during runtime of the tristanable
* engine
*/
public class TristanableException : Exception
{
private ErrorType err;