Move exceptions class in one file