/** * Responds an error with an specific condition. * * @param response the response to send. * @param condition the condition of the error. * @throws NotConnectedException */ private static IQ respondError(AdHocCommandData response, StanzaError.Condition condition) { return respondError(response, StanzaError.getBuilder(condition)); }
/** * Responds an error with an specific condition. * * @param response the response to send. * @param condition the condition of the error. * @param specificCondition the adhoc command error condition. * @throws NotConnectedException */ private static IQ respondError(AdHocCommandData response, StanzaError.Condition condition, AdHocCommand.SpecificErrorCondition specificCondition) { StanzaError.Builder error = StanzaError.getBuilder(condition).addExtension(new AdHocCommandData.SpecificError(specificCondition)); return respondError(response, error); }
return respondError(response, StanzaError.Condition.item_not_found); | InvocationTargetException | NoSuchMethodException | SecurityException e) { StanzaError.Builder xmppError = StanzaError.getBuilder().setCondition(StanzaError.Condition.internal_server_error).setDescriptiveEnText(e.getMessage()); return respondError(response, xmppError); return respondError(response, StanzaError.Condition.forbidden); return respondError(response, StanzaError.Condition.bad_request, AdHocCommand.SpecificErrorCondition.malformedAction); return respondError(response, StanzaError.Condition.bad_request, AdHocCommand.SpecificErrorCondition.badAction); return respondError(response, StanzaError.getBuilder(error)); return respondError(response, StanzaError.Condition.bad_request, AdHocCommand.SpecificErrorCondition.badSessionid); return respondError(response, StanzaError.Condition.not_allowed, AdHocCommand.SpecificErrorCondition.sessionExpired); return respondError(response, StanzaError.Condition.bad_request, AdHocCommand.SpecificErrorCondition.malformedAction); return respondError(response, StanzaError.Condition.bad_request, AdHocCommand.SpecificErrorCondition.badAction); return respondError(response, StanzaError.getBuilder(error));
/** * Responds an error with an specific condition. * * @param response the response to send. * @param condition the condition of the error. */ private void respondError(AdHocCommandData response, XMPPError.Condition condition) { respondError(response, new XMPPError(condition)); }
/** * Responds an error with an specific condition. * * @param response the response to send. * @param condition the condition of the error. */ private void respondError(AdHocCommandData response, XMPPError.Condition condition) { respondError(response, new XMPPError(condition)); }
/** * Responds an error with an specific condition. * * @param response the response to send. * @param condition the condition of the error. */ private void respondError(AdHocCommandData response, XMPPError.Condition condition) { respondError(response, new XMPPError(condition)); }
/** * Responds an error with an specific condition. * * @param response the response to send. * @param condition the condition of the error. * @param specificCondition the adhoc command error condition. */ private void respondError(AdHocCommandData response, XMPPError.Condition condition, AdHocCommand.SpecificErrorCondition specificCondition) { XMPPError error = new XMPPError(condition); error.addExtension(new AdHocCommandData.SpecificError(specificCondition)); respondError(response, error); }
/** * Responds an error with an specific condition. * * @param response the response to send. * @param condition the condition of the error. * @param specificCondition the adhoc command error condition. */ private void respondError(AdHocCommandData response, XMPPError.Condition condition, AdHocCommand.SpecificErrorCondition specificCondition) { XMPPError error = new XMPPError(condition); error.addExtension(new AdHocCommandData.SpecificError(specificCondition)); respondError(response, error); }
/** * Responds an error with an specific condition. * * @param response the response to send. * @param condition the condition of the error. * @param specificCondition the adhoc command error condition. */ private void respondError(AdHocCommandData response, XMPPError.Condition condition, AdHocCommand.SpecificErrorCondition specificCondition) { XMPPError error = new XMPPError(condition); error.addExtension(new AdHocCommandData.SpecificError(specificCondition)); respondError(response, error); }
respondError(response, XMPPError.Condition.item_not_found); return; respondError(response, XMPPError.Condition.forbidden); return; respondError(response, XMPPError.Condition.bad_request, AdHocCommand.SpecificErrorCondition.malformedAction); return; respondError(response, XMPPError.Condition.bad_request, AdHocCommand.SpecificErrorCondition.badAction); return; respondError(response, error); e.printStackTrace(); respondError(response, XMPPError.Condition.bad_request, AdHocCommand.SpecificErrorCondition.badSessionid); return; respondError(response, XMPPError.Condition.not_allowed, AdHocCommand.SpecificErrorCondition.sessionExpired); return; respondError(response, XMPPError.Condition.bad_request, AdHocCommand.SpecificErrorCondition.malformedAction); return;
respondError(response, XMPPError.Condition.item_not_found); return; respondError(response, XMPPError.Condition.forbidden); return; respondError(response, XMPPError.Condition.bad_request, AdHocCommand.SpecificErrorCondition.malformedAction); return; respondError(response, XMPPError.Condition.bad_request, AdHocCommand.SpecificErrorCondition.badAction); return; respondError(response, error); e.printStackTrace(); respondError(response, XMPPError.Condition.bad_request, AdHocCommand.SpecificErrorCondition.badSessionid); return; respondError(response, XMPPError.Condition.not_allowed, AdHocCommand.SpecificErrorCondition.sessionExpired); return; respondError(response, XMPPError.Condition.bad_request, AdHocCommand.SpecificErrorCondition.malformedAction); return;
respondError(response, XMPPError.Condition.item_not_found); return; respondError(response, XMPPError.Condition.forbidden); return; respondError(response, XMPPError.Condition.bad_request, AdHocCommand.SpecificErrorCondition.malformedAction); return; respondError(response, XMPPError.Condition.bad_request, AdHocCommand.SpecificErrorCondition.badAction); return; respondError(response, error); e.printStackTrace(); respondError(response, XMPPError.Condition.bad_request, AdHocCommand.SpecificErrorCondition.badSessionid); return; respondError(response, XMPPError.Condition.not_allowed, AdHocCommand.SpecificErrorCondition.sessionExpired); return; respondError(response, XMPPError.Condition.bad_request, AdHocCommand.SpecificErrorCondition.malformedAction); return;