Continue sql stored proc processing in spite of exceptions

时间:2016-02-12 20:14:08

标签: exception-handling cisco information-server

I have to capture the exception message which occurs when the stored proc is executed. In the below stored proc, the proc executes and captured the first exception encountered. However, I the stored proc exits once the exception is encountered. Is there a way in which I can ask the stored proc to keep running even after encountering the exception

Kindly help !!!

int code = Integer.parseInt(args[2]);

1 个答案:

答案 0 :(得分:0)

That's because your exception is at the end of your procedure. You can trap the exception within the loop and it would continue.

Something like this would trap your exception when it occurs anywhere within the second loop and stay within first loop :

<div ng-repeat="role in roles | filter: { Type: 'AA'}">
   <input class="styled" type="checkbox" value="{{ role.Value }}" />
   <label>{{ role.Name }}</label>
</div>
<div ng-repeat="role in roles | filter: { Type: 'BB'}">
   <input class="styled" type="checkbox" value="{{ role.Value }}" />
   <label>{{ role.Name }}</label>
</div>
<div ng-repeat="role in roles | filter: { Type: 'CC'}">
   <input class="styled" type="checkbox" value="{{ role.Value }}" />
   <label>{{ role.Name }}</label>
</div>
<div ng-repeat="role in roles | filter: { Type: 'DD'}">
   <input class="styled" type="checkbox" value="{{ role.Value }}" />
   <label>{{ role.Name }}</label>
</div>
<div ng-repeat="role in roles | filter: { Type: 'EE'}">
   <input class="styled" type="checkbox" value="{{ role.Value }}" />
   <label>{{ role.Name }}</label>
</div>
...

END