Debian Codegraph @

minidns-hla/src/main/java/org/minidns/hla/ResolutionUnsuccessfulException.java

raw
1 /*
2 * Copyright 2015-2020 the original author or authors
3 *
4 * This software is licensed under the Apache License, Version 2.0,
5 * the GNU Lesser General Public License version 2 or later ("LGPL")
6 * and the WTFPL.
7 * You may choose either license to govern your use of this software only
8 * upon the condition that you accept all of the terms of either
9 * the Apache License 2.0, the LGPL 2.1+ or the WTFPL.
10 */
11 package org.minidns.hla;
12
13 import org.minidns.MiniDnsException;
14 import org.minidns.dnsmessage.Question;
15 import org.minidns.dnsmessage.DnsMessage.RESPONSE_CODE;
16
17 public class ResolutionUnsuccessfulException extends MiniDnsException {
18
19 /**
20 *
21 */
22 private static final long serialVersionUID = 1L;
23
24 public final Question question;
25 public final RESPONSE_CODE responseCode;
26
27 public ResolutionUnsuccessfulException(Question question, RESPONSE_CODE responseCode) {
28 super("Asking for " + question + " yielded an error response " + responseCode);
29 this.question = question;
30 this.responseCode = responseCode;
31 }
32 }