AmbiguousImplementationException.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT license.
  3. // See the LICENSE file in the project root for more information.
  4. using System.Globalization;
  5. using System.Runtime.Serialization;
  6. namespace System.Runtime
  7. {
  8. [Serializable]
  9. public sealed class AmbiguousImplementationException : Exception
  10. {
  11. public AmbiguousImplementationException()
  12. : base(SR.AmbiguousImplementationException_NullMessage)
  13. {
  14. HResult = HResults.COR_E_AMBIGUOUSIMPLEMENTATION;
  15. }
  16. public AmbiguousImplementationException(string message)
  17. : base(message)
  18. {
  19. HResult = HResults.COR_E_AMBIGUOUSIMPLEMENTATION;
  20. }
  21. public AmbiguousImplementationException(string message, Exception innerException)
  22. : base(message, innerException)
  23. {
  24. HResult = HResults.COR_E_AMBIGUOUSIMPLEMENTATION;
  25. }
  26. private AmbiguousImplementationException(SerializationInfo info, StreamingContext context)
  27. : base(info, context)
  28. {
  29. }
  30. }
  31. }