EntryPointNotFoundException.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. /*=============================================================================
  5. **
  6. **
  7. **
  8. ** Purpose: The exception class for some failed P/Invoke calls.
  9. **
  10. **
  11. =============================================================================*/
  12. using System;
  13. using System.Runtime.Serialization;
  14. namespace System
  15. {
  16. [Serializable]
  17. [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
  18. public class EntryPointNotFoundException : TypeLoadException
  19. {
  20. public EntryPointNotFoundException()
  21. : base(SR.Arg_EntryPointNotFoundException)
  22. {
  23. HResult = HResults.COR_E_ENTRYPOINTNOTFOUND;
  24. }
  25. public EntryPointNotFoundException(string message)
  26. : base(message)
  27. {
  28. HResult = HResults.COR_E_ENTRYPOINTNOTFOUND;
  29. }
  30. public EntryPointNotFoundException(string message, Exception inner)
  31. : base(message, inner)
  32. {
  33. HResult = HResults.COR_E_ENTRYPOINTNOTFOUND;
  34. }
  35. protected EntryPointNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context)
  36. {
  37. }
  38. }
  39. }