Bump versions.
[libidn.git] / csharp / IDNAException.cs
blobc81ff5a8443b6da7415c0367228dcae09d78bc2f
1 /// <summary>
2 /// Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
3 /// *
4 /// Author: Alexander Gnauck AG-Software
5 /// *
6 /// This file is part of GNU Libidn.
7 /// *
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.
12 /// *
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.
17 /// *
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
21 /// 02111-1307 USA.
22 /// </summary>
24 using System;
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)
41 // TODO
42 public IDNAException(StringprepException e) :base( "", e)
46 public IDNAException(PunycodeException e) : base( "", e)