364: -- Store the technical message which will have been seeded
365: -- if this exception has been raised. This will be used to provide
366: -- the code.
367: --
368: hr_message.provide_error;
369: --
370: -- Now distinguish which error was raised.
371: --
372: IF (hr_message.last_message_name = 'OTA_13667_WEB_STATUS_NOT_SEEDE') THEN
368: hr_message.provide_error;
369: --
370: -- Now distinguish which error was raised.
371: --
372: IF (hr_message.last_message_name = 'OTA_13667_WEB_STATUS_NOT_SEEDE') THEN
373: --
374: -- Seed the user friendly message
375: --
376: fnd_message.set_name ('OTA','OTA_WEB_INCORRECT_CONF');
377: --
378: -- Raise the error for the main procedure exception handler
379: -- to handle
380: --
381: p_message_name := hr_message.last_message_name;
382: p_message_name := SUBSTR(SQLERRM, 1,300);
383: --
384: ELSIF (hr_message.last_message_name = 'HR_51396_WEB_PERSON_NOT_FND')
385: THEN
380: --
381: p_message_name := hr_message.last_message_name;
382: p_message_name := SUBSTR(SQLERRM, 1,300);
383: --
384: ELSIF (hr_message.last_message_name = 'HR_51396_WEB_PERSON_NOT_FND')
385: THEN
386: --
387: -- Seed the user friendly message
388: --
392: -- to handle
393: p_message_name := 'OTA_NO_DELEGATE_INFORMATION';
394: p_message_name := SUBSTR(SQLERRM, 1,300);
395: --
396: /* ELSIF (hr_message.last_message_name = 'OTA_13658_WF_ERR_GETTING_TYPE')
397: THEN
398: --
399: -- Seed the user friendly message
400: --
407: --
408: ELSE
409: -- Raise the error for the main procedure exception handler
410: -- to handle
411: p_message_name := hr_message.get_message_text;
412:
413: --
414: END IF;
415: --
417: --
418: -- Can't store a technical message, as we don't know what it is
419: -- and a message may not have been put on the stack
420: --
421: hr_message.provide_error;
422: --
423: -- Seed the user friendly message
424: --
425: fnd_message.set_name ('OTA','OTA_WEB_ERR_GETTING_INFO');
659: -- p_mode will be changed to indicate an error and,if it's a WF error
660: -- the mode will also indicate this.
661: -- Then the "Confirmation" page will be called from the main handler.
662: --
663: -- It is OK to use hr_message.provide_error as an application
664: -- error will have been raised which will have put an error onto
665: -- the stack
666: --
667: /* IF (hr_message.last_message_name = 'OTA_13668_WEB_NO_TRANMISSION')
663: -- It is OK to use hr_message.provide_error as an application
664: -- error will have been raised which will have put an error onto
665: -- the stack
666: --
667: /* IF (hr_message.last_message_name = 'OTA_13668_WEB_NO_TRANMISSION')
668: THEN
669: --
670: -- The WF may have already be transissioned, so change the mode.
671: l_mode := l_mode || 'BADWF';