System.Runtime.Serialization.Formatters.ServerFault Class

Assembly: Mscorlib.dll
Namespace: System.Runtime.Serialization.Formatters
Summary
Contains information for a server fault. This class cannot be inherited.
C# Syntax:
[Serializable]
public sealed class ServerFault
Remarks
The ServerFault object is used to hold information about an exception that was thrown on the server to the client. The ServerFault is transmitted in SOAP format.
See also:
System.Runtime.Serialization.Formatters Namespace

System.Runtime.Serialization.Formatters.ServerFault Member List:

Public Constructors
ctor #1 Initializes a new instance of the ServerFault class.
Public Properties
ExceptionMessage Read-write

Gets or sets the exception message that accompanied the exception thrown on the server.
ExceptionType Read-write

Gets or sets the type of exception that was thrown by the server.
StackTrace Read-write

Gets or sets the stack trace of the thread that threw the exception on the server.
Public Methods
Equals
(inherited from System.Object)
See base class member description: System.Object.Equals

Derived from System.Object, the primary base class for all objects.
GetHashCode
(inherited from System.Object)
See base class member description: System.Object.GetHashCode

Derived from System.Object, the primary base class for all objects.
GetType
(inherited from System.Object)
See base class member description: System.Object.GetType

Derived from System.Object, the primary base class for all objects.
ToString
(inherited from System.Object)
See base class member description: System.Object.ToString

Derived from System.Object, the primary base class for all objects.
Protected Methods
Finalize
(inherited from System.Object)
See base class member description: System.Object.Finalize

Derived from System.Object, the primary base class for all objects.
MemberwiseClone
(inherited from System.Object)
See base class member description: System.Object.MemberwiseClone

Derived from System.Object, the primary base class for all objects.

Hierarchy:


System.Runtime.Serialization.Formatters.ServerFault Member Details

ctor #1
Summary
Initializes a new instance of the ServerFault class.
C# Syntax:
public ServerFault(
   string exceptionType,
   string message,
   string stackTrace
);
Parameters:

exceptionType

The type of the exception that occurred on the server.

message

The message that accompanied the exception.

stackTrace

The stack trace of the thread that threw the exception on the server.

Return to top


Property: ExceptionMessage (read-write)
Summary
Gets or sets the exception message that accompanied the exception thrown on the server.
C# Syntax:
public string ExceptionMessage {get; set;}

Return to top


Property: ExceptionType (read-write)
Summary
Gets or sets the type of exception that was thrown by the server.
C# Syntax:
public string ExceptionType {get; set;}

Return to top


Property: StackTrace (read-write)
Summary
Gets or sets the stack trace of the thread that threw the exception on the server.
C# Syntax:
public string StackTrace {get; set;}

Return to top


Method: Equals(
   object obj
)
Inherited
See base class member description: System.Object.Equals
C# Syntax:
public virtual bool Equals(
   object obj
);

For more information on members inherited from System.Object click on the link above.

Return to top


Method: Finalize()
Inherited
See base class member description: System.Object.Finalize
C# Syntax:
~ServerFault();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: GetHashCode()
Inherited
See base class member description: System.Object.GetHashCode
C# Syntax:
public virtual int GetHashCode();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: GetType()
Inherited
See base class member description: System.Object.GetType
C# Syntax:
public Type GetType();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: MemberwiseClone()
Inherited
See base class member description: System.Object.MemberwiseClone
C# Syntax:
protected object MemberwiseClone();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: ToString()
Inherited
See base class member description: System.Object.ToString
C# Syntax:
public virtual string ToString();

For more information on members inherited from System.Object click on the link above.

Return to top


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.