Search in sources :

Example 1 with RESPONSE_CODE

use of de.measite.minidns.DNSMessage.RESPONSE_CODE in project Smack by igniterealtime.

the class MiniDnsResolver method getExceptionFrom.

private static ResolutionUnsuccessfulException getExceptionFrom(ResolverResult<?> result) {
    Question question = result.getQuestion();
    RESPONSE_CODE responseCode = result.getResponseCode();
    ResolutionUnsuccessfulException resolutionUnsuccessfulException = new ResolutionUnsuccessfulException(question, responseCode);
    return resolutionUnsuccessfulException;
}
Also used : RESPONSE_CODE(de.measite.minidns.DNSMessage.RESPONSE_CODE) ResolutionUnsuccessfulException(de.measite.minidns.hla.ResolutionUnsuccessfulException) Question(de.measite.minidns.Question)

Aggregations

RESPONSE_CODE (de.measite.minidns.DNSMessage.RESPONSE_CODE)1 Question (de.measite.minidns.Question)1 ResolutionUnsuccessfulException (de.measite.minidns.hla.ResolutionUnsuccessfulException)1