Skip to content

Commit bd436d3

Browse files
committed
Don't wrap exception, just bubble
1 parent 1aa00b3 commit bd436d3

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/ThriftSQL.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,12 @@ abstract public function disconnect();
3434

3535
/**
3636
* Gets a memory efficient iterator that you can use in a foreach loop.
37-
* If there's an error with the query, it will simply stop iterating.
3837
*
3938
* @param string $queryStr
40-
*
4139
* @return \ThriftSQL\Utils\Iterator
4240
* @throws \ThriftSQL\Exception
4341
*/
4442
public function getIterator( $queryStr ) {
45-
try {
46-
return new \ThriftSQL\Utils\Iterator( $this, $queryStr );
47-
} catch ( \Exception $e ) {
48-
throw new \ThriftSQL\Exception( $e->getMessage() );
49-
}
43+
return new \ThriftSQL\Utils\Iterator( $this, $queryStr );
5044
}
5145
}

0 commit comments

Comments
 (0)