Browse Source

update exception namespaces for API

antograssiot 11 years ago
parent
commit
fe06e153fe
3 changed files with 7 additions and 7 deletions
  1. 1 1
      src/Datasource/RepositoryInterface.php
  2. 5 5
      src/ORM/Behavior/TreeBehavior.php
  3. 1 1
      src/ORM/Table.php

+ 1 - 1
src/Datasource/RepositoryInterface.php

@@ -53,7 +53,7 @@ interface RepositoryInterface
      *
      * @param mixed $primaryKey primary key value to find
      * @param array|\ArrayAccess $options options accepted by `Table::find()`
-     * @throws \Cake\ORM\Exception\RecordNotFoundException if the record with such id
+     * @throws \Cake\Datasource\Exception\RecordNotFoundException if the record with such id
      * could not be found
      * @return \Cake\Datasource\EntityInterface
      * @see RepositoryInterface::find()

+ 5 - 5
src/ORM/Behavior/TreeBehavior.php

@@ -538,7 +538,7 @@ class TreeBehavior extends Behavior
      *
      * @param \Cake\ORM\Entity $node The node to move
      * @param int|bool $number How many places to move the node, or true to move to first position
-     * @throws \Cake\ORM\Exception\RecordNotFoundException When node was not found
+     * @throws \Cake\Datasource\Exception\RecordNotFoundException When node was not found
      * @return \Cake\ORM\Entity|bool $node The node after being moved or false on failure
      */
     public function moveUp(Entity $node, $number = 1)
@@ -558,7 +558,7 @@ class TreeBehavior extends Behavior
      *
      * @param \Cake\ORM\Entity $node The node to move
      * @param int|bool $number How many places to move the node, or true to move to first position
-     * @throws \Cake\ORM\Exception\RecordNotFoundException When node was not found
+     * @throws \Cake\Datasource\Exception\RecordNotFoundException When node was not found
      * @return \Cake\ORM\Entity|bool $node The node after being moved or false on failure
      */
     protected function _moveUp($node, $number)
@@ -619,7 +619,7 @@ class TreeBehavior extends Behavior
      *
      * @param \Cake\ORM\Entity $node The node to move
      * @param int|bool $number How many places to move the node or true to move to last position
-     * @throws \Cake\ORM\Exception\RecordNotFoundException When node was not found
+     * @throws \Cake\Datasource\Exception\RecordNotFoundException When node was not found
      * @return \Cake\ORM\Entity|bool the entity after being moved or false on failure
      */
     public function moveDown(Entity $node, $number = 1)
@@ -639,7 +639,7 @@ class TreeBehavior extends Behavior
      *
      * @param \Cake\ORM\Entity $node The node to move
      * @param int|bool $number How many places to move the node, or true to move to last position
-     * @throws \Cake\ORM\Exception\RecordNotFoundException When node was not found
+     * @throws \Cake\Datasource\Exception\RecordNotFoundException When node was not found
      * @return \Cake\ORM\Entity|bool $node The node after being moved or false on failure
      */
     protected function _moveDown($node, $number)
@@ -698,7 +698,7 @@ class TreeBehavior extends Behavior
      *
      * @param mixed $id Record id.
      * @return \Cake\ORM\Entity
-     * @throws \Cake\ORM\Exception\RecordNotFoundException When node was not found
+     * @throws \Cake\Datasource\Exception\RecordNotFoundException When node was not found
      */
     protected function _getNode($id)
     {

+ 1 - 1
src/ORM/Table.php

@@ -1063,7 +1063,7 @@ class Table implements RepositoryInterface, EventListenerInterface
     /**
      * {@inheritDoc}
      *
-     * @throws Cake\Datasource\Exception\InvalidPrimaryKeyException When $primaryKey has an
+     * @throws \Cake\Datasource\Exception\InvalidPrimaryKeyException When $primaryKey has an
      *      incorrect number of elements.
      */
     public function get($primaryKey, $options = [])