mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-26 08:12:05 +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;
|
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.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue