blob: 869fd39bb071df9380d54069125540b45a76fcb6 [file] [log] [blame]
Shuyi Chend7955ce2013-05-22 14:51:55 -07001// Copyright (c) 2003-2004 Brian Wellington (bwelling@xbill.org)
2
3package org.xbill.DNS;
4
5/**
6 * An exception thrown when a relative name is passed as an argument to
7 * a method requiring an absolute name.
8 *
9 * @author Brian Wellington
10 */
11
12public class RelativeNameException extends IllegalArgumentException {
13
14public
15RelativeNameException(Name name) {
16 super("'" + name + "' is not an absolute name");
17}
18
19public
20RelativeNameException(String s) {
21 super(s);
22}
23
24}