Invocation of the handleError() function.
- By David Houlding
- August 14, 2000
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;
}