IBM AS/400 manual Exception Handling Overview, Call Stack and Exception Message Percolation

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 243
Image 243
Call Stack and Exception Message Percolation

Exception Handling Overview

Pass 1

Call Stack

Manual background OPM

Program A

Activation

 

ILE

 

Proc. P1

 

ILE

Percolate

Proc. P2

Unhandled

Exception

 

Exception

Handlers

for

P2

ILE

 

Proc. P3

 

exception

 

occurs

 

for

P3

Pass 2

Call Stack

Manual background OPM

Program A

Manual backgroundManual backgroundSending

Terminating

Exception CEE9901

Activation

 

 

 

ILE

 

 

 

Proc. P1

 

 

ILE

 

Percolate

 

Proc. P2

Function

 

Check

 

 

 

 

 

 

(CPF9999)

 

 

Exception

 

 

Handlers

 

ILE

for

P2

 

 

 

 

Proc. P3

 

 

exception

 

 

occurs

 

 

 

for

P3

Figure

108.

Call Stack and Exception Message Percolation

In

OPM,

the exception

message

is

associatedprogram withwhichtheis

active on

the call stack. If the exception

is

not

handled by

the associated

then

a

function check

is sent

to

the

same

call stack

entry which re

Chapter 12. Handling Exceptions219

Page 243
Image 243
IBM AS/400 manual Exception Handling Overview, Call Stack and Exception Message Percolation