2 /// Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
4 /// Author: Alexander Gnauck AG-Software
6 /// This file is part of GNU Libidn.
8 /// This program is free software; you can redistribute it and/or
9 /// modify it under the terms of the GNU General Public License as
10 /// published by the Free Software Foundation; either version 2 of the
11 /// License, or (at your option) any later version.
13 /// This program is distributed in the hope that it will be useful,
14 /// but WITHOUT ANY WARRANTY; without even the implied warranty of
15 /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 /// General Public License for more details.
18 /// You should have received a copy of the GNU General Public License
19 /// along with this program; if not, write to the Free Software
20 /// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
26 namespace gnu
.inet
.encoding
29 public class IDNAException
: System
.Exception
31 public static string CONTAINS_NON_LDH
= "Contains non-LDH characters.";
32 public static string CONTAINS_HYPHEN
= "Leading or trailing hyphen not allowed.";
33 public static string CONTAINS_ACE_PREFIX
= "ACE prefix (xn--) not allowed.";
34 public static string TOO_LONG
= "String too long.";
36 public IDNAException(string m
) : base(m
)
42 public IDNAException(StringprepException e
) :base( "", e
)
46 public IDNAException(PunycodeException e
) : base( "", e
)