Avoid using the deprecated management InvalidDocumentURIException class

This rule flags the following deprecated exception class:

This exception class was deprecated in WebSphere Application Server Version 5.0 and might be removed in a future release.

Any use of this class should be replaced with the com.ibm.websphere.management.exception.DocumentNotFoundException class.

The automated fix will change the references of InvalidDocumentURIException to DocumentNotFoundException . For example:

import com.ibm.websphere.management.exception.InvalidDocumentURIException;
public MyEx extends InvalidDocumentURIException {
private void doX() throws InvalidDocumentURIException {
// some code that throws the InvalidDocumentURIException
}
private void doY() {
try {
// code that throws InvalidDocumentURIException
} catch (InvalidDocumentURIException e) {
// code that handles InvalidDocumentURIException
}
}
}

In the preceding example, all references to InvalidDocumentURIException will be replaced by DocumentNotFoundException

For additional class information, see the