Skip to content

Commit 9a62213

Browse files
author
Tony Fitzgerald
authored
Update CustomerAccounts.java
add import com.ibm.cics.server.LengthErrorException; and LengthErrorException to catch on get.container
1 parent fcfb9e7 commit 9a62213

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

web-banking/etc/AccountServices/src/banking/CustomerAccounts.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
import com.ibm.cics.server.ContainerErrorException;
3838
import com.ibm.cics.server.InvalidRequestException;
3939
import com.ibm.cics.server.InvalidTransactionIdException;
40+
import com.ibm.cics.server.LengthErrorException;
4041
import com.ibm.cics.server.NotAuthorisedException;
4142
import com.ibm.cics.server.NotFoundException;
4243
import com.ibm.cics.server.ResourceDisabledException;
@@ -244,7 +245,7 @@ else if (anyResponse.equals(accountPartner))
244245
}
245246
catch (InvalidRequestException | NotFoundException
246247
| ContainerErrorException | ChannelErrorException
247-
| CCSIDErrorException | CodePageErrorException e)
248+
| CCSIDErrorException | CodePageErrorException | LengthErrorException e)
248249
{
249250
e.printStackTrace();
250251
}
@@ -326,7 +327,7 @@ private String decodeContainerBytes(ChildResponse response,
326327
returnValue = response.getChannel().getContainer(containerName).get();
327328
}
328329
catch (ContainerErrorException | ChannelErrorException
329-
| CCSIDErrorException | CodePageErrorException e)
330+
| CCSIDErrorException | CodePageErrorException | LengthErrorException e)
330331
{
331332
System.out.println("Container error: " + containerName);
332333
}

0 commit comments

Comments
 (0)