Permalink
Browse files

Added NotImplementedException with status code 501

  • Loading branch information...
1 parent 061483d commit daa695b4d3f17db7b5804efc9df2dc79bf75ef8a Thomas Ploch committed Apr 25, 2012
Showing with 15 additions and 0 deletions.
  1. +15 −0 lib/Cake/Error/exceptions.php
@@ -555,3 +555,18 @@ public function __construct($message, $code = 500, $file = null, $line = null) {
}
}
+
+/**
+ * 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);
+ }
+
+}

0 comments on commit daa695b

Please sign in to comment.