Skip to content

Commit efce254

Browse files
committed
Added more annotations of exceptions
1 parent 23bb977 commit efce254

File tree

7 files changed

+10
-0
lines changed

7 files changed

+10
-0
lines changed

lib/triagens/ArangoDb/AqlUserFunction.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,8 @@ public function __toString()
361361
* Build the object's attributes from a given array
362362
*
363363
* @param $options
364+
*
365+
* @throws \triagens\ArangoDb\ClientException
364366
*/
365367
public function buildAttributesFromArray($options)
366368
{

lib/triagens/ArangoDb/Cursor.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ public function valid()
376376
* @param array $data - incoming result
377377
*
378378
* @return void
379+
* @throws \triagens\ArangoDb\ClientException
379380
*/
380381
private function add(array $data)
381382
{

lib/triagens/ArangoDb/Database.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ public static function delete(Connection $connection, $name)
9898
* @link http://www.arangodb.com/manuals/1.4/HttpDatabase.html
9999
*
100100
* @return array $responseArray - The response array.
101+
* @throws \triagens\ArangoDb\Exception
102+
* @throws \triagens\ArangoDb\ClientException
101103
*/
102104
public static function listDatabases(Connection $connection)
103105
{

lib/triagens/ArangoDb/ExportCursor.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ class ExportCursor
107107
* @param array $data - initial result data as returned by the server
108108
* @param array $options - cursor options
109109
*
110+
* @throws \triagens\ArangoDb\ClientException
110111
*/
111112
public function __construct(Connection $connection, array $data, array $options)
112113
{

lib/triagens/ArangoDb/Handler.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ protected function getCursorOptions($options)
102102
* @param array $body - The body to encode into json
103103
*
104104
* @return string - json string of the body that was passed
105+
* @throws \triagens\ArangoDb\ClientException
105106
*/
106107
protected function json_encode_wrapper($body)
107108
{

lib/triagens/ArangoDb/Transaction.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,8 @@ public function __toString()
479479
* Build the object's attributes from a given array
480480
*
481481
* @param $options
482+
*
483+
* @throws \triagens\ArangoDb\ClientException
482484
*/
483485
public function buildTransactionAttributesFromArray($options)
484486
{

lib/triagens/ArangoDb/Traversal.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ class Traversal
6767
* @param string $edgeCollection - user function initialization data
6868
* @param array $options
6969
*
70+
* @throws \triagens\ArangoDb\ClientException
7071
*/
7172
public function __construct(Connection $connection, $startVertex, $edgeCollection, array $options = null)
7273
{

0 commit comments

Comments
 (0)