2008-08-23 12:05:24 +00:00
|
|
|
<?php
|
2014-04-29 01:33:03 -04:00
|
|
|
|
2009-07-19 08:38:13 +01:00
|
|
|
/**
|
2014-04-29 01:33:03 -04:00
|
|
|
* Class SCoreException
|
|
|
|
*
|
|
|
|
* A base exception to be caught by the upper levels.
|
2009-07-19 08:38:13 +01:00
|
|
|
*/
|
2019-05-28 17:59:38 +01:00
|
|
|
class SCoreException extends Exception
|
|
|
|
{
|
|
|
|
}
|
2009-01-04 05:53:14 -08:00
|
|
|
|
2009-07-19 08:38:13 +01:00
|
|
|
/**
|
2014-04-29 01:33:03 -04:00
|
|
|
* Class PermissionDeniedException
|
|
|
|
*
|
|
|
|
* A fairly common, generic exception.
|
2009-07-19 08:38:13 +01:00
|
|
|
*/
|
2019-05-28 17:59:38 +01:00
|
|
|
class PermissionDeniedException extends SCoreException
|
|
|
|
{
|
|
|
|
}
|
2014-04-24 19:01:47 -04:00
|
|
|
|
2014-04-25 16:07:30 -04:00
|
|
|
/**
|
|
|
|
* Class ImageDoesNotExist
|
|
|
|
*
|
|
|
|
* This exception is used when an Image cannot be found by ID.
|
|
|
|
*
|
|
|
|
* Example: Image::by_id(-1) returns null
|
|
|
|
*/
|
2019-05-28 17:59:38 +01:00
|
|
|
class ImageDoesNotExist extends SCoreException
|
|
|
|
{
|
|
|
|
}
|
2015-07-12 22:40:28 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* For validate_input()
|
|
|
|
*/
|
2019-05-28 17:59:38 +01:00
|
|
|
class InvalidInput extends SCoreException
|
|
|
|
{
|
|
|
|
}
|
2019-06-09 13:22:48 -05:00
|
|
|
|
|
|
|
/*
|
|
|
|
* This is used by the image resizing code when there is not enough memory to perform a resize.
|
|
|
|
*/
|
|
|
|
class InsufficientMemoryException extends SCoreException
|
|
|
|
{
|
|
|
|
}
|