mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-26 05:52:06 +01:00
Add XMPPError.toString()
This commit is contained in:
parent
b265d2d2a2
commit
6a542824bc
1 changed files with 10 additions and 0 deletions
|
@ -175,6 +175,16 @@ public class XMPPError extends AbstractError {
|
|||
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.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue