added TileError custom exception