Class ErrorUtilKt

  • All Implemented Interfaces:

    
    public final class ErrorUtilKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static IQ createError(IQ request, StanzaError.Condition errorCondition, String errorMessage, ExtensionElement extension)
      final static IQ createError(IQ request, StanzaError.Condition errorCondition, String errorMessage)
      final static IQ createError(IQ request, StanzaError.Condition errorCondition)
      final static IQ createError(IQ request, StanzaError.Condition errorCondition, String errorMessage, List<ExtensionElement> extensions) Create an error response for a given IQ request.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • createError

        @JvmOverloads() final static IQ createError(IQ request, StanzaError.Condition errorCondition, String errorMessage, ExtensionElement extension)
      • createError

         final static IQ createError(IQ request, StanzaError.Condition errorCondition, String errorMessage, List<ExtensionElement> extensions)

        Create an error response for a given IQ request.

        Parameters:
        request - the request IQ for which the error response will be created.
        errorCondition - the XMPP error condition for the error response.
        errorMessage - optional error text message to be included in the error response.
        extensions - optional extensions to include as a children of the error element.
        Returns:

        an IQ which is an XMPP error response to given <tt>request</tt>.