split up files in core/ for saner management

This commit is contained in:
Shish
2018-11-05 22:30:18 +00:00
parent 3c5c44d75f
commit b2f10ea5ab
32 changed files with 2799 additions and 2842 deletions

29
core/exceptions.php Normal file
View File

@ -0,0 +1,29 @@
<?php
/**
* Class SCoreException
*
* A base exception to be caught by the upper levels.
*/
class SCoreException extends Exception {}
/**
* Class PermissionDeniedException
*
* A fairly common, generic exception.
*/
class PermissionDeniedException extends SCoreException {}
/**
* Class ImageDoesNotExist
*
* This exception is used when an Image cannot be found by ID.
*
* Example: Image::by_id(-1) returns null
*/
class ImageDoesNotExist extends SCoreException {}
/*
* For validate_input()
*/
class InvalidInput extends SCoreException {}