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
|
|
|
*/
|
2009-01-04 05:53:14 -08:00
|
|
|
class SCoreException extends Exception {}
|
|
|
|
|
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
|
|
|
*/
|
2009-01-04 05:53:14 -08: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
|
|
|
|
*/
|
|
|
|
class ImageDoesNotExist extends SCoreException {}
|