Change RuntimeException to InvalidStateException on BlockIterator

This commit is contained in:
Shoghi Cervantes 2014-11-06 12:16:12 +01:00
parent 987d647b76
commit 263bff01c8

View File

@ -166,7 +166,7 @@ class BlockIterator implements \Iterator{
}
if(!$startBlockFound){
throw new \RuntimeException("Start block missed in BlockIterator");
throw new \InvalidStateException("Start block missed in BlockIterator");
}
$this->maxDistanceInt = round($maxDistance / (sqrt($mainDirection ** 2 + $secondDirection ** 2 + $thirdDirection ** 2) / $mainDirection));