1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-04 15:45:58 +01:00

Add XMPPError.toString()

This commit is contained in:
Florian Schmaus 2015-01-21 10:02:34 +01:00
parent b265d2d2a2
commit 6a542824bc

View file

@ -175,6 +175,16 @@ public class XMPPError extends AbstractError {
return conditionText; return conditionText;
} }
@Override
public String toString() {
StringBuilder sb = new StringBuilder("XMPPError: ");
sb.append(condition.toString()).append(" - ").append(type.toString());
if (errorGenerator != null) {
sb.append(". Generated by ").append(errorGenerator);
}
return sb.toString();
}
/** /**
* Returns the error as XML. * Returns the error as XML.
* *