Fixed an exception

Had to chanage it to throws to make eclipse happy :D