From daa695b4d3f17db7b5804efc9df2dc79bf75ef8a Mon Sep 17 00:00:00 2001 From: Thomas Ploch Date: Wed, 25 Apr 2012 15:44:48 +0200 Subject: [PATCH] Added NotImplementedException with status code 501 --- lib/Cake/Error/exceptions.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lib/Cake/Error/exceptions.php b/lib/Cake/Error/exceptions.php index fea1eacdf..2545ac1b1 100644 --- a/lib/Cake/Error/exceptions.php +++ b/lib/Cake/Error/exceptions.php @@ -555,3 +555,18 @@ class FatalErrorException extends CakeException { } } + +/** + * Not Implemented Exception - used when an API method is not implemented + * + * @package Cake.Error + */ +class NotImplementedException extends CakeException { + + protected $_messageTemplate = '%s is not implemented.'; + + public function __construct($message, $code = 501) { + parent::__construct($message, $code); + } + +}