Share this page

# nca_set_exception

Session Functions

Specifies exception handling.

    void nca_set_exception( LPCSTR title, long function, [void *this_context] );

title | The title of the exception.
function | The function to invoke when the exception occurs.
this_context | The context of the exception (added automatically by VuGen—do not edit or add manually).

The nca_set_exception function specifies what actions to perform when an exception occurs. You specify a function to invoke that handles the exception window.

Note that a third parameter is created by VuGen during script generation. To use this function, you need to specify only the two parameters title and function described above. Do not enter this_context and do not edit the context recorded by VuGen.

## Return Values

Oracle NCA Error Codes

## Parameterization

All arguments of this function may be parameterized using standard parameterization.

## Example

In the following example, nca_set_exception calls the user-defined function that closes the Error window (close).

    int close() {
         nca_popup_message_press("Error", "OK");
    }

    Action1() {
         nca_connect_server("199.203.78.170",      "9000"/*version=110*/,"module=e:\\appsnca\\fnd\\7.5\\forms\\us\\fndscsgn
         userid=applsyspub/pub@vision fndnam=apps record=names");
        nca_set_exception("Error", close);
        nca_set_window("Oracle Applications")
        nca_edit_set("FNDSCSGN.SIGNON.USERNAME.0", "OPERATIONS");
        nca_obj_type("FNDSCSGN.SIGNON.USERNAME.0",'\t',0);
         ....
         return 0;
    }

Tips to improve your search results... VuGen Function Reference Version 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: