1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 14:22:05 +01:00

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

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();
}
}