-3
I have a Rigger that checks if the user login has more than 3 characters and if it does not have it returns the msg "login must have more than 3 characters", how can I capture this return in java and show in a Joptionpane?
with the try catch(Exception e)
it only shows java.lang.Exception...
try {
occurrence.insert(ocorrencia, usuarioLogado);
} catch (Exception e) {
JOptionPane.showMessageDialog(null, e.getMessage());
}
Grateful
If you change the
e.getMessage()
fore.getErrorCode()
show the bank’s custom message?– rray
No such method to use..
– Jefferson Kist
No catch change the
Exception
forSQLException
see if it shows up.– rray
I solved with e.getcause(). getmessage(). toString;
– Jefferson Kist