Migrationg exception handling

In BTT version 5.2 , APIs such as context.getKeyedCollection(), context.getValue() do not throw out exceptions; while in BTT version 6.1.2, these APIs throw exceptions.

As a result, you need to migrate exception handling and you must 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:
//TODO , btt612, exception handling
try {
return utb.getContext().getKeyedCollection().getElements().entrySet();
} catch (DSEInvalidRequestException e) {
// TODO: Exception handling
//Trace the exception.
}
return null;