1// 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} 25