2004-06-09 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / System / System / UriFormatException.cs
1 //
2 // System.UriFormatException.cs
3 //
4 // Author:
5 //   Scott Sanders (scott@stonecobra.com)
6 //   Duncan Mak (duncan@ximian.com)
7 //
8 // (C) 2001 Scott Sanders
9 // (C) 2002 Ximian, Inc.
10 //
11
12 using System.Globalization;
13 using System.Runtime.Serialization;
14
15 namespace System {
16         [Serializable]
17         public class UriFormatException : FormatException, ISerializable
18         {
19
20                 // Constructors
21                 public UriFormatException ()
22                         : base (Locale.GetText ("Invalid URI format"))
23                 {
24                 }
25
26                 public UriFormatException (string message)
27                         : base (message)
28                 {
29                 }
30
31                 protected UriFormatException (SerializationInfo info, StreamingContext context)
32                         : base (info, context)
33                 {                       
34                 }
35
36                 // Methods
37                 void ISerializable.GetObjectData (SerializationInfo info, StreamingContext context)
38                 {
39                         base.GetObjectData (info, context);
40                 }
41         }
42 }
43