ServerException ServerException ServerException ServerException Constructors

Definition

Overloads

ServerException() ServerException() ServerException()

Initializes a new instance of the ServerException class with default properties.

ServerException(String) ServerException(String) ServerException(String) ServerException(String)

Initializes a new instance of the ServerException class with a specified message.

ServerException(String, Exception) ServerException(String, Exception) ServerException(String, Exception) ServerException(String, Exception)

Initializes a new instance of the ServerException class with a specified error message and a reference to the inner exception that is the cause of this exception.

ServerException() ServerException() ServerException()

Initializes a new instance of the ServerException class with default properties.

public:
 ServerException();
public ServerException ();
Public Sub New ()

Remarks

ServerException inherits from the SystemException class. The following table shows initial property values for an instance of the ServerException class:

Property Value
InnerException null
Message The empty string ("")
See also

ServerException(String) ServerException(String) ServerException(String) ServerException(String)

Initializes a new instance of the ServerException class with a specified message.

public:
 ServerException(System::String ^ message);
public ServerException (string message);
new System.Runtime.Remoting.ServerException : string -> System.Runtime.Remoting.ServerException
Public Sub New (message As String)

Parameters

message
String String String String

The message that describes the exception

Remarks

ServerException inherits from the SystemException class. The following table shows initial property values for an instance of the ServerException class:

Property Type Condition
InnerException null
Message The message string
See also

ServerException(String, Exception) ServerException(String, Exception) ServerException(String, Exception) ServerException(String, Exception)

Initializes a new instance of the ServerException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public:
 ServerException(System::String ^ message, Exception ^ InnerException);
public ServerException (string message, Exception InnerException);
new System.Runtime.Remoting.ServerException : string * Exception -> System.Runtime.Remoting.ServerException
Public Sub New (message As String, InnerException As Exception)

Parameters

message
String String String String

The error message that explains the reason for the exception.

InnerException
Exception Exception Exception Exception

The exception that is the cause of the current exception. If the InnerException parameter is not null, the current exception is raised in a catch block that handles the inner exception.

Remarks

An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception in the InnerException property. The InnerException property returns the same value that is passed into the constructor, or null if the InnerException property does not supply the inner exception value to the constructor.

The following table shows initial property values for an instance of the ServerException class:

Property Value
InnerException The inner exception reference
Message The error message string
See also

Applies to