Please use appropriate subclasses of the exceptions in http://de1.php.net/manual/de/spl.exceptions.php - for example an outofbounds exception might be appropriate in some cases.