01: // Copyright (c) 2003-2004 Brian Wellington (bwelling@xbill.org)
02:
03: package org.xbill.DNS;
04:
05: /**
06: * An exception thrown when a relative name is passed as an argument to
07: * a method requiring an absolute name.
08: *
09: * @author Brian Wellington
10: */
11:
12: public class RelativeNameException extends IllegalArgumentException {
13:
14: public RelativeNameException(Name name) {
15: super ("'" + name + "' is not an absolute name");
16: }
17:
18: public RelativeNameException(String s) {
19: super(s);
20: }
21:
22: }
|