home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2007 April / PCpro_2007_04.ISO / files / dsl / jNetTool.exe / gnu / inet / IDNAException.class (.txt) < prev    next >
Encoding:
Java Class File  |  2005-06-05  |  1.0 KB  |  21 lines

  1. package gnu.inet;
  2.  
  3. public class IDNAException extends Exception {
  4.    public static String CONTAINS_NON_LDH = "Contains non-LDH characters.";
  5.    public static String CONTAINS_HYPHEN = "Leading or trailing hyphen not allowed.";
  6.    public static String CONTAINS_ACE_PREFIX = "ACE prefix (xn--) not allowed.";
  7.    public static String TOO_LONG = "String too long.";
  8.  
  9.    public IDNAException(String m) {
  10.       super(m);
  11.    }
  12.  
  13.    public IDNAException(StringprepException e) {
  14.       super(e);
  15.    }
  16.  
  17.    public IDNAException(PunycodeException e) {
  18.       super(e);
  19.    }
  20. }
  21.