TargetException.cs 710 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // System.Reflection.TargetException.cs
  3. //
  4. // Author: Duncan Mak ([email protected])
  5. //
  6. // (C) Ximian, Inc. http://www.ximian.com
  7. //
  8. using System.Globalization;
  9. using System.Runtime.Serialization;
  10. namespace System.Reflection
  11. {
  12. [Serializable]
  13. public class TargetException : ApplicationException
  14. {
  15. public TargetException ()
  16. : base (Locale.GetText ("Unable to invoke an invalid target."))
  17. {
  18. }
  19. public TargetException (string message)
  20. : base (message)
  21. {
  22. }
  23. public TargetException (string message, Exception innerException)
  24. : base (message, innerException)
  25. {
  26. }
  27. protected TargetException (SerializationInfo info, StreamingContext context)
  28. : base (info, context)
  29. {
  30. }
  31. }
  32. }