/** * Creates a new error with the specified condition infering the type and code. * If the Condition is predefined, client code should be like: * new XMPPError(XMPPError.Condition.remote_server_timeout); * If the Condition is not predefined, invocations should be like * new XMPPError(new XMPPError.Condition("my_own_error")); * * @param condition the error condition. */ public XMPPError(Condition condition) { this.init(condition); this.message = null; }
/** * Creates a new error with the specified condition and message infering the type and code. * If the Condition is predefined, client code should be like: * new XMPPError(XMPPError.Condition.remote_server_timeout, "Error Explanation"); * If the Condition is not predefined, invocations should be like * new XMPPError(new XMPPError.Condition("my_own_error"), "Error Explanation"); * * @param condition the error condition. * @param messageText a message describing the error. */ public XMPPError(Condition condition, String messageText) { this.init(condition); this.message = messageText; }
/** * Creates a new error with the specified condition infering the type and code. * If the Condition is predefined, client code should be like: * new XMPPError(XMPPError.Condition.remote_server_timeout); * If the Condition is not predefined, invocations should be like * new XMPPError(new XMPPError.Condition("my_own_error")); * * @param condition the error condition. */ public XMPPError(Condition condition) { this.init(condition); this.message = null; }
/** * Creates a new error with the specified condition infering the type and code. * If the Condition is predefined, client code should be like: * new XMPPError(XMPPError.Condition.remote_server_timeout); * If the Condition is not predefined, invocations should be like * new XMPPError(new XMPPError.Condition("my_own_error")); * * @param condition the error condition. */ public XMPPError(Condition condition) { this.init(condition); this.message = null; }
/** * Creates a new error with the specified condition and message infering the type and code. * If the Condition is predefined, client code should be like: * new XMPPError(XMPPError.Condition.remote_server_timeout, "Error Explanation"); * If the Condition is not predefined, invocations should be like * new XMPPError(new XMPPError.Condition("my_own_error"), "Error Explanation"); * * @param condition the error condition. * @param messageText a message describing the error. */ public XMPPError(Condition condition, String messageText) { this.init(condition); this.message = messageText; }
/** * Creates a new error with the specified condition and message infering the type and code. * If the Condition is predefined, client code should be like: * new XMPPError(XMPPError.Condition.remote_server_timeout, "Error Explanation"); * If the Condition is not predefined, invocations should be like * new XMPPError(new XMPPError.Condition("my_own_error"), "Error Explanation"); * * @param condition the error condition. * @param messageText a message describing the error. */ public XMPPError(Condition condition, String messageText) { this.init(condition); this.message = messageText; }