class DeprecatedException extends NotSupportedException

The exception that is thrown when a requested method or operation is deprecated.