fixed exceptions class hierarchy