From 5b5fd955b7a8ec4c3ef5f32e4d51c5e84a9374be Mon Sep 17 00:00:00 2001 From: jgen Date: Fri, 25 Apr 2014 16:07:30 -0400 Subject: [PATCH] New exception type. --- core/exceptions.class.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/exceptions.class.php b/core/exceptions.class.php index fd52b7af..d627dc3c 100644 --- a/core/exceptions.class.php +++ b/core/exceptions.class.php @@ -9,3 +9,11 @@ class SCoreException extends 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 {}