add an DeprecatedException for deprecations