Exceptions
- Documented `ErrorType` and all its members - Documented `TristanableException`
This commit is contained in:
parent
79fee5bd7e
commit
07d47551ae
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue