/** * Creates a new XMPPException with the stream error that was the root case of the * exception. When a stream error is received from the server then the underlying connection * will be closed by the server. * * @param streamError the root cause of the exception. */ public StreamErrorException(StreamError streamError) { 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; }
public String getMessage() { String msg = super.getMessage(); // If the message was not set, but there is an XMPPError, return the // XMPPError as the message. if (msg == null && error != null) { return error.toString(); } else if (msg == null && streamError != null) { return streamError.toString(); } return msg; }
public String getMessage() { String msg = super.getMessage(); // If the message was not set, but there is an XMPPError, return the // XMPPError as the message. if (msg == null && error != null) { return error.toString(); } else if (msg == null && streamError != null) { return streamError.toString(); } return msg; }
public String getMessage() { String msg = super.getMessage(); // If the message was not set, but there is an XMPPError, return the // XMPPError as the message. if (msg == null && error != null) { return error.toString(); } else if (msg == null && streamError != null) { return streamError.toString(); } return msg; }
public String getMessage() { String msg = super.getMessage(); // If the message was not set, but there is an XMPPError, return the // XMPPError as the message. if (msg == null && error != null) { return error.toString(); } else if (msg == null && streamError != null) { return streamError.toString(); } return msg; }
/** * Creates a new XMPPException with the stream error that was the root case of the * exception. When a stream error is received from the server then the underlying connection * will be closed by the server. * * @param streamError the root cause of the exception. */ public StreamErrorException(StreamError streamError) { 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; }