dao: Change exceptions.