Permalink
Browse files

more exception catching fixes

  • Loading branch information...
1 parent 8f2a27b commit 91007f5f9c86babfd5b7747f8256f60788964f21 @sebgiroux committed Mar 29, 2012
Showing with 10 additions and 8 deletions.
  1. +10 −8 helper/ClusterHelper.php
@@ -42,7 +42,7 @@ public function getClusterNameForIndex($index) {
return $sys_manager->describe_cluster_name();
}
- catch (TException $e) {
+ catch (NoServerAvailable $e) {
return null;
}
}
@@ -56,14 +56,16 @@ public function getArrayOfNodesForCurrentCluster() {
return $all_nodes;
}
- /*
- Get an array of Cassandra nodes (IP:port) for cluster at $index
- */
- public function getArrayOfNodesForIndex($index) {
- $all_nodes = $this->cassandra_clusters[$index]['nodes'];
+ /*
+ Get an array of Cassandra nodes (IP:port) for cluster at $index
+
+ @param $index Index of the cluster name to get
+ */
+ public function getArrayOfNodesForIndex($index) {
+ $all_nodes = $this->cassandra_clusters[$index]['nodes'];
- return $all_nodes;
- }
+ return $all_nodes;
+ }
/*
Get a random Cassandra node at $index

0 comments on commit 91007f5

Please sign in to comment.