2003-11-18 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
[mono.git] / mcs / class / corlib / System.Runtime.Serialization.Formatters / ServerFault.cs
1 //\r
2 // System.Runtime.Serialization.Formatters.ServerFault.cs\r
3 //\r
4 // Author: Duncan Mak  (duncan@ximian.com)\r
5 //         Jean-Marc Andre (jean-marc.andre@polymtl.ca)\r
6 //\r
7 // 2002 (C) Copyright, Ximian, Inc.\r
8 //\r
9 \r
10 using System;
11 using System.Runtime.Remoting.Metadata;\r
12 using System.Runtime.Serialization;\r
13 \r
14 namespace System.Runtime.Serialization.Formatters {\r
15 \r
16         [Serializable]
17         [SoapType()]\r
18         public sealed class ServerFault\r
19         {\r
20                 string exceptionType;\r
21                 string message;\r
22                 string stackTrace;\r
23                 Exception exception;\r
24 \r
25                 public ServerFault (string exceptionType, string message,\r
26                                   string stackTrace)\r
27                 {\r
28                         this.exceptionType = exceptionType;\r
29                         this.message = message;\r
30                         this.stackTrace = stackTrace;\r
31                 }\r
32 \r
33                 public string ExceptionType {\r
34                         get { return exceptionType; }\r
35                         set { exceptionType = value; }\r
36                 }\r
37 \r
38                 public string ExceptionMessage {\r
39                         get { return message; }\r
40                         set { message = value; }\r
41                 }\r
42 \r
43                 public string StackTrace {\r
44                         get { return stackTrace; }\r
45                         set { stackTrace = value; }\r
46                 }\r
47         }\r
48 }\r