An extension of SplFileObject that uses exceptions.