SoapFault.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. //
  2. // System.Runtime.Serialization.Formatters.SoapFault.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 SoapFault : ISerializable
  13. {
  14. string code;
  15. string actor;
  16. string faultString;
  17. ServerFault serverFault;
  18. [MonoTODO]
  19. public SoapFault ()
  20. {
  21. throw new NotImplementedException ();
  22. }
  23. public SoapFault (string faultCode, string faultString,
  24. string faultActor, ServerFault serverFault)
  25. {
  26. this.code = faultCode;
  27. this.actor = faultActor;
  28. this.faultString = faultString;
  29. this.serverFault = serverFault;
  30. }
  31. [MonoTODO]
  32. public object Detail {
  33. get { throw new NotImplementedException (); }
  34. set { throw new NotImplementedException (); }
  35. }
  36. public string FaultActor {
  37. get { return actor; }
  38. set { actor = value; }
  39. }
  40. public string FaultCode {
  41. get { return code; }
  42. set { code = value; }
  43. }
  44. public string FaultString {
  45. get { return faultString; }
  46. set { faultString = value; }
  47. }
  48. public void GetObjectData (SerializationInfo info,
  49. StreamingContext context)
  50. {
  51. throw new NotImplementedException ();
  52. }
  53. }
  54. }