About this task
In
IBM® WebSphere® Multichannel Bank
Transformation Toolkit version
5.2,
APIs such as
context.getKeyedCollection(),
context.getValue() do
not throw out exceptions; while in
WebSphere Multichannel
Bank Transformation Toolkit version
7.1, these
APIs throw exceptions.
As a result, you must migrate exception handling
and trace the exceptions.
The following code
is the code sample before migration:
return utb.getContext().getKeyedCollection().getElements().entrySet();
After
migration, the code is as follows:
try {
return utb.getContext().getKeyedCollection().getElements().entrySet();
} catch (DSEInvalidRequestException e) {
// TODO: Exception handling
//Trace the exception.
}
return null;