mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-26 08:12:05 +01:00
Better toString() method.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2095 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
7f6f5a07a6
commit
f8d3c5f4b5
1 changed files with 6 additions and 4 deletions
|
@ -195,12 +195,14 @@ public class XMPPException extends Exception {
|
||||||
|
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuffer buf = new StringBuffer();
|
StringBuffer buf = new StringBuffer();
|
||||||
if (wrappedThrowable != null) {
|
buf.append(super.toString());
|
||||||
buf.append(wrappedThrowable);
|
|
||||||
}
|
|
||||||
if (error != null) {
|
if (error != null) {
|
||||||
buf.append(" -- ").append(error);
|
buf.append(": ").append(error);
|
||||||
}
|
}
|
||||||
|
if (wrappedThrowable != null) {
|
||||||
|
buf.append("\n -- caused by: ").append(wrappedThrowable);
|
||||||
|
}
|
||||||
|
|
||||||
return buf.toString();
|
return buf.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue