Developer Area

root/apps/outlook/branches/1.5/DotTelSystem/Punycode/IDNAException.cs @ 580

Revision 580, 1.5 kB (checked in by jonmaycock, 10 months ago)
Line 
1/// <summary>
2/// *
3/// Author: Alexander Gnauck AG-Software, mailto:gnauck@ag-software.de
4/// *
5/// This file is part of GNU Libidn.
6/// *
7/// This library is free software; you can redistribute it and/or
8/// modify it under the terms of the GNU Lesser General Public License
9/// as published by the Free Software Foundation; either version 2.1 of
10/// the License, or (at your option) any later version.
11/// *
12/// This library is distributed in the hope that it will be useful, but
13/// WITHOUT ANY WARRANTY; without even the implied warranty of
14/// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15/// Lesser General Public License for more details.
16/// *
17/// You should have received a copy of the GNU Lesser General Public
18/// License along with this library; if not, write to the Free Software
19/// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
20/// USA
21/// </summary>
22
23using System;
24
25namespace Gnu.Inet.Encoding
26{               
27        public class IDNAException : System.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) : base(m)
35                {
36               
37                }
38
39                // TODO
40                public IDNAException(StringprepException e) :base( "", e)
41                {
42                }
43               
44                public IDNAException(PunycodeException e) : base( "", e)
45                {
46                }
47        }
48}
Note: See TracBrowser for help on using the browser.
Telnic
Search This Site
Partners
Neustar
ICANN
Main site | WHOIS | Sell .tel | FAQ | Archived Site | About Telnic | Contact Us