Fix issue in exceptions declaration