1 23 24 package org.jivesoftware.stringprep; 25 26 public class IDNAException 27 extends Exception  28 { 29 public static String CONTAINS_NON_LDH = "Contains non-LDH characters."; 30 public static String CONTAINS_HYPHEN = "Leading or trailing hyphen not allowed."; 31 public static String CONTAINS_ACE_PREFIX = "ACE prefix (xn--) not allowed."; 32 public static String TOO_LONG = "String too long."; 33 34 public IDNAException(String m) 35 { 36 super(m); 37 } 38 39 public IDNAException(StringprepException e) 40 { 41 super(e); 42 } 43 44 public IDNAException(PunycodeException e) 45 { 46 super(e); 47 } 48 } 49 | Popular Tags |