ServerFault.cs 861 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // System.Runtime.Serialization.Formatters.ServerFault.cs
  3. //
  4. // Author: Duncan Mak ([email protected])
  5. //
  6. // 2002 (C) Copyright, Ximian, Inc.
  7. //
  8. using System;
  9. using System.Runtime.Serialization;
  10. namespace System.Runtime.Serialization.Formatters {
  11. [Serializable]
  12. public sealed class ServerFault
  13. {
  14. string ex_type;
  15. string ex_message;
  16. string stacktrace;
  17. ServerFault serverFault;
  18. public ServerFault (string exceptionType, string message,
  19. string stackTrace)
  20. {
  21. ex_type = exceptionType;
  22. ex_message = message;
  23. stacktrace = stackTrace;
  24. }
  25. public string ExceptionType {
  26. get { return ex_type; }
  27. set { ex_type = value; }
  28. }
  29. public string ExceptionMessage {
  30. get { return ex_message; }
  31. set { ex_message = value; }
  32. }
  33. public string StackTrace {
  34. get { return stacktrace; }
  35. set { stacktrace = value; }
  36. }
  37. }
  38. }