Getting rid of throwing generic exceptions.