Added NotImplementedException with status code 501

This commit is contained in:
Thomas Ploch 2012-04-25 15:44:48 +02:00
parent 061483d03e
commit daa695b4d3

View file

@ -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);
}
}