...
Here is an example of exception handling in 1.4 which is no longer necessary. Im not sure if it is ideal to take this out or leave it in, not sure what the use is. But at least we will not have that choice
Code Block |
---|
catch (InsufficientPrivilegeException eIP) {
throw new MemberAddException(eIP.getMessage() + ", " + errorString, eIP);
}
catch (MemberNotFoundException eMNF) {
throw new MemberAddException( eMNF.getMessage() + ", " + errorString, eMNF );
}
|
Here is another example which might not even be correct... are all schema exceptions the same meaning as AttributeNotFoundException???
Code Block |
---|
catch (SchemaException eS) {
throw new AttributeNotFoundException(eS.getMessage(), eS);
}
|
Here is an example of tunneling checked exceptions through an anonymous inner class (inverse of control). This is not needed anymore
...