private static IQ respondError ( AdHocCommandData response , StanzaError . Builder error ) { response . setType ( IQ . Type . error ) ; response . setError ( error ) ; return response ; }
Responds an error with an specific error .