Permalink
Browse files

Merge pull request #624 from tPl0ch/2.2-not-implemented

Added "NotImplementedException" to exceptions.php
  • Loading branch information...
2 parents 061483d + daa695b commit 474eb89c7df84b6599c8b8c6c490c50af80f9479 @markstory markstory 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 474eb89

Please sign in to comment.