Just out of curiousity why do XMPPException throw a number rather than just print the verbiage of the problem?
I then have to go to the JavaDoc and look up what the error is.
What not just print the error in the first place?
For example instead of printing 409, why not just print “duplicate username in chat room”.
It is annoying.