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]
# 1
Consult the documentation for your driver and database.
cotton.ma at 2007-7-8 9:02:59 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 2
hi, When a password is wrong you get the below exception.Just show it on a label or print it Exceptionjava.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Not avalid password.
Ashitosha at 2007-7-8 9:02:59 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 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.

cotton.ma at 2007-7-8 9:03:00 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 4
hi,It was just a example.You may get an exception.Just catch it and print it as and where you requireCotton:Examples makes learning easy
Ashitosha at 2007-7-8 9:03:00 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 5
Usually when people ask such questions they really mean "How can my computer program do (whatever)." So telling them to print the exception is helpful only because it forces them to post the correct question.
DrClapa at 2007-7-8 9:03:00 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...