Invocation of the handleError() function.

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;


Sign up for our newsletter.

Terms and Privacy Policy consent

I agree to this site's Privacy Policy.

Upcoming Events