Home | History | Annotate | Download | only in DNS
      1 // Copyright (c) 2003-2004 Brian Wellington (bwelling (at) xbill.org)
      2 
      3 package 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 
     12 public class RelativeNameException extends IllegalArgumentException {
     13 
     14 public
     15 RelativeNameException(Name name) {
     16 	super("'" + name + "' is not an absolute name");
     17 }
     18 
     19 public
     20 RelativeNameException(String s) {
     21 	super(s);
     22 }
     23 
     24 }
     25