Search in sources :

Example 1 with RESPONSE_CODE

use of org.minidns.dnsmessage.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(org.minidns.dnsmessage.DnsMessage.RESPONSE_CODE) ResolutionUnsuccessfulException(org.minidns.hla.ResolutionUnsuccessfulException) Question(org.minidns.dnsmessage.Question)

Aggregations

RESPONSE_CODE (org.minidns.dnsmessage.DnsMessage.RESPONSE_CODE)1 Question (org.minidns.dnsmessage.Question)1 ResolutionUnsuccessfulException (org.minidns.hla.ResolutionUnsuccessfulException)1