How can i know whether exception is due to incorrect password..
Hi All, I'm trying to connect AS400 but if i unknowingly fill in incorrect user name or password we get an exception.Now how can i use this exception object to determine whether this exception is just due to incorrect user name/ password.thx. in advance.
[277 byte] By [
Ahmad_22a] at [2007-11-26 15:11:55]

# 3
> hi,
> When a password is wrong you get the below
> exception.Just show it on a label or print it
> > xceptionjava.sql.SQLException: [Microsoft][ODBC
> Microsoft Access Driver] Not a
> valid password.
>
I somehow doubt that an AS400 is going to throw a ODBC Access SQL Exception.