From 490013fdd8d91593b6162fa0292fc90003285b2d Mon Sep 17 00:00:00 2001 From: icewing Date: Wed, 5 Mar 2008 17:28:58 +0000 Subject: Marcus Povey * A couple more exceptions git-svn-id: https://code.elgg.org/elgg/trunk@81 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/exceptions.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'engine/lib/exceptions.php') diff --git a/engine/lib/exceptions.php b/engine/lib/exceptions.php index 0c9b9b0d7..000501196 100644 --- a/engine/lib/exceptions.php +++ b/engine/lib/exceptions.php @@ -55,6 +55,13 @@ */ class APIException extends Exception {} + /** + * @class CallException + * An exception thrown when there is a problem calling something. + * @author Marcus Povey + */ + class CallException extends Exception {} + // Class exceptions /////////////////////////////////////////////////////////////////////// /** @@ -79,4 +86,21 @@ * @author Marcus Povey */ class InstallationException extends ConfigurationException {} + + // Call exceptions //////////////////////////////////////////////////////////////////////// + + /** + * @class NotImplementedException + * Thrown when a method or function has not been implemented, primarily used in development... you should + * not see these! + * @author Marcus Povey + */ + class NotImplementedException extends CallException {} + + /** + * @class InvalidParameterException + * A parameter is invalid. + * @author Marcus Povey + */ + class InvalidParameterException extends CallException {} ?> \ No newline at end of file -- cgit v1.2.3