Added toString method.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2093 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2003-09-19 07:54:34 +00:00 committed by mtucker
parent d843cc9a77
commit 276c3191e2
1 changed files with 12 additions and 1 deletions

View File

@ -192,4 +192,15 @@ public class XMPPException extends Exception {
wrappedThrowable.printStackTrace(out);
}
}
}
public String toString() {
StringBuffer buf = new StringBuffer();
if (wrappedThrowable != null) {
buf.append(wrappedThrowable);
}
if (error != null) {
buf.append(" -- ").append(error);
}
return buf.toString();
}
}