public LsQuestion getQuestion ( int surveyId , int questionId ) throws LimesurveyRCException { return getQuestions ( surveyId ) . filter ( question -> question . getId ( ) == questionId ) . findFirst ( ) . orElseThrow ( ( ) -> new LimesurveyRCException ( "No question found for id " + questionId + " in survey " + surveyId ) ) ; }
Gets question from a survey .