Invocation of the handleError() function.

ENTERPRISE JAVA
Reusing CORBA Web Services With JavaScript

David Houlding
Listing 4. Invocation of the handleError() function.


function handleError( message, url, lineNumber ) {
    // Check for application exceptions and handle first.
    if( message == "InvalidUseridPasswordPair" ) {
        alert( "Invalid username/password pair. Please try again." );
    }
    else {
        // System exception, problem executing request.
        alert( "An unexpected error occurred. Please restart and try again." );
        return false;
    }

    // Suppress the generic error alert.
    return true;
}

Upcoming Training Events

0 AM
Visual Studio Live! San Diego
September 8-12, 2025
Live! 360 Orlando
November 16-21, 2025
Cloud & Containers Live! Orlando
November 16-21, 2025
Data Platform Live! Orlando
November 16-21, 2025
Visual Studio Live! Orlando
November 16-21, 2025