TargetException.cs 979 B

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