MissingManifestResourceException.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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;
  5. using System.Runtime.Serialization;
  6. namespace System.Resources
  7. {
  8. [Serializable]
  9. [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
  10. public class MissingManifestResourceException : SystemException
  11. {
  12. public MissingManifestResourceException()
  13. : base(SR.Arg_MissingManifestResourceException)
  14. {
  15. HResult = System.HResults.COR_E_MISSINGMANIFESTRESOURCE;
  16. }
  17. public MissingManifestResourceException(string message)
  18. : base(message)
  19. {
  20. HResult = System.HResults.COR_E_MISSINGMANIFESTRESOURCE;
  21. }
  22. public MissingManifestResourceException(string message, Exception inner)
  23. : base(message, inner)
  24. {
  25. HResult = System.HResults.COR_E_MISSINGMANIFESTRESOURCE;
  26. }
  27. protected MissingManifestResourceException(SerializationInfo info, StreamingContext context)
  28. : base(info, context)
  29. {
  30. }
  31. }
  32. }