mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-23 06:42: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:
parent
d843cc9a77
commit
276c3191e2
1 changed files with 12 additions and 1 deletions
|
@ -192,4 +192,15 @@ public class XMPPException extends Exception {
|
||||||
wrappedThrowable.printStackTrace(out);
|
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();
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue