sorry, I found the error come from typos in the message property, I write messSage instead of message.
On Feb 17, 6:36 pm, tong123123 <[email protected]> wrote: > I know gwt has no SQLException and NamingException, so I create a > class called ServerException in shared folder and has just one > property message and corresponding setter and getter. > > in server, DBConnection.class, if there is NamingException, I copy the > message to ServerException message property > > catch(NamingException e){ > ServerException se = new ServerException(); > se.setMessage(e.geteMessage()); > throw se; > > } > > then in client side, I want to display this exception message > > public void onFailure(Throwable caught){ > if (caught instanceof ServerException){ > System.out.println(((ServerException)caught).getMessage()); > } > > } > > but out of my expectation, null is shown!! > in debug mode, I see the caught message property is not null, but I do > not know why when call ((ServerException)caught).getMessage(), will > return null!! > > any idea? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
