Which odiRef method do you use to access the error message?

You are working on notifications in a package and you must send an email containing an error message in case a Package step fails.
Which odiRef method do you use to access the error message? (Choose the best answer.)

You are working on notifications in a package and you must send an email containing an error message in case a Package step fails.
Which odiRef method do you use to access the error message? (Choose the best answer.)

A.
odiRef.getSession()

B.
odiRef.getInfo()

C.
odiRef.getPrevStepLog()

D.
odiRef.getStep()

Explanation:
(https://docs.oracle.com/middleware/1212/odi/ODIKD/odiref_reference.htm#ODIKD1147)



Leave a Reply 4

Your email address will not be published. Required fields are marked *


Vigaro

Vigaro

C

shape_82

shape_82

I think that B is correct.
getInfo method is used to return information about the current task.
Question isn’t about the previous package step.

buki

buki

I think @Vigaro is right the correct is “C”. Because when You send an mail with the the error happent in the previous step. And You want the log from previous not from current task. The current task is OdiSendMail or procedure.
Am I wrong?