Share this page

# Example: lr.error_message

In the following example, lr_error_message sends a message to the output window or log file if login fails:

    try {
        lr.start_transaction("create");
        _carmel = _carmelhome.create();
        lr.end_transaction("create", lr.AUTO);
    }
    catch (Throwable t) {
        lr.end_transaction("create", lr.FAIL);
        lr.error_message("Exception occur while calling EJB create");
        t.printStackTrace();
    }

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