KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jivesoftware > stringprep > IDNAException


1 /**
2  * Copyright (C) 2004 Free Software Foundation, Inc.
3  *
4  * Author: Oliver Hitz
5  *
6  * This file is part of GNU Libidn.
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public License
10  * as published by the Free Software Foundation; either version 2.1 of
11  * the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
21  * USA
22  */

23
24 package org.jivesoftware.stringprep;
25
26 public class IDNAException
27   extends Exception JavaDoc
28 {
29   public static String JavaDoc CONTAINS_NON_LDH = "Contains non-LDH characters.";
30   public static String JavaDoc CONTAINS_HYPHEN = "Leading or trailing hyphen not allowed.";
31   public static String JavaDoc CONTAINS_ACE_PREFIX = "ACE prefix (xn--) not allowed.";
32   public static String JavaDoc TOO_LONG = "String too long.";
33
34   public IDNAException(String JavaDoc 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