Improve message of StreamErrorException

This commit is contained in:
Florian Schmaus 2015-02-28 10:16:32 +01:00
parent 75ec271c6c
commit caa7b9acb8
1 changed files with 3 additions and 1 deletions

View File

@ -152,7 +152,9 @@ public abstract class XMPPException extends Exception {
* @param streamError the root cause of the exception.
*/
public StreamErrorException(StreamError streamError) {
super(streamError.toString());
super(streamError.getCondition().toString()
+ " You can read more about the meaning of this stream error at http://xmpp.org/rfcs/rfc6120.html#streams-error-conditions\n"
+ streamError.toString());
this.streamError = streamError;
}