Initial commit
[mono.git] / mcs / class / referencesource / mscorlib / system / multicastnotsupportedexception.cs
1 // ==++==
2 // 
3 //   Copyright (c) Microsoft Corporation.  All rights reserved.
4 // 
5 // ==--==
6 ////////////////////////////////////////////////////////////////////////////////
7 // MulticastNotSupportedException
8 // This is thrown when you add multiple callbacks to a non-multicast delegate.
9 ////////////////////////////////////////////////////////////////////////////////
10
11 namespace System {
12     
13     using System;
14     using System.Runtime.Serialization;
15 [System.Runtime.InteropServices.ComVisible(true)]
16     [Serializable]
17     public sealed class MulticastNotSupportedException : SystemException {
18         
19         public MulticastNotSupportedException() 
20             : base(Environment.GetResourceString("Arg_MulticastNotSupportedException")) {
21             SetErrorCode(__HResults.COR_E_MULTICASTNOTSUPPORTED);
22         }
23     
24         public MulticastNotSupportedException(String message) 
25             : base(message) {
26             SetErrorCode(__HResults.COR_E_MULTICASTNOTSUPPORTED);
27         }
28         
29         public MulticastNotSupportedException(String message, Exception inner) 
30             : base(message, inner) {
31             SetErrorCode(__HResults.COR_E_MULTICASTNOTSUPPORTED);
32         }
33
34         internal MulticastNotSupportedException(SerializationInfo info, StreamingContext context) : base(info, context) {
35         }
36
37     }
38 }