Skip to content
Permalink
Browse files

update exception namespaces for API

  • Loading branch information...
antograssiot committed Mar 27, 2015
1 parent 48ad0b0 commit fe06e153fe589422a1a676a7cdfdc79f85c7211b
Showing 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
@@ -53,7 +53,7 @@ public function find($type = 'all', $options = []);
*
* @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()
@@ -538,7 +538,7 @@ protected function _removeFromTree($node)
*
* @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 @@ public function moveUp(Entity $node, $number = 1)
*
* @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 @@ protected function _moveUp($node, $number)
*
* @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 @@ public function moveDown(Entity $node, $number = 1)
*
* @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 @@ protected function _moveDown($node, $number)
*
* @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)
{
@@ -1063,7 +1063,7 @@ protected function _setFieldMatchers($options, $keys)
/**
* {@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 = [])

0 comments on commit fe06e15

Please sign in to comment.
You can’t perform that action at this time.