just thorw a regular exception

I'm not expecting a user to do anything actionable (other than open an issue) on this error so a regular Exception should be ok.
Esse commit está contido em:
Paul Tarjan
2013-06-07 13:31:11 -07:00
commit de Sara Golemon
commit 7b6d06074c
2 arquivos alterados com 2 adições e 2 exclusões
+1 -1
Ver Arquivo
@@ -7068,7 +7068,7 @@ class RecursiveIteratorIterator implements OuterIterator, Traversable {
public function getInnerIterator() {
$it = $this->iterators[count($this->iterators)-1][0];
if (!$it instanceof RecursiveDirectoryIterator) {
throw new NotImplementedException(
throw new Exception(
"RecursiveIteratorIterator only supports RecursiveDirectoryIterator"
);
}
@@ -67,7 +67,7 @@ class RecursiveIteratorIterator implements OuterIterator, Traversable {
public function getInnerIterator() {
$it = $this->iterators[count($this->iterators)-1][0];
if (!$it instanceof RecursiveDirectoryIterator) {
throw new NotImplementedException(
throw new Exception(
"RecursiveIteratorIterator only supports RecursiveDirectoryIterator"
);
}