Constructor ConnectionException
ConnectionException()
Default constructor.
Declaration
public ConnectionException()
ConnectionException(String)
Overloaded constructor, takes the reason as parameter.
Declaration
public ConnectionException(string reason)
Parameters
Type | Name | Description |
---|---|---|
System. |
reason |
ConnectionException(String, IPAddress, Int32)
Overloaded constructor, takes the reason, ipAddress and port as parameter.
Declaration
public ConnectionException(string reason, IPAddress ipAddress, int port)
Parameters
Type | Name | Description |
---|---|---|
System. |
reason | |
System. |
ipAddress | |
System. |
port |
ConnectionException(IPAddress, Int32)
Overloaded constructor, takes the ipAddress and port as parameter.
Declaration
public ConnectionException(IPAddress ipAddress, int port)
Parameters
Type | Name | Description |
---|---|---|
System. |
ipAddress | |
System. |
port |
ConnectionException(Int32)
Overloaded constructor
Declaration
public ConnectionException(int errorCode)
Parameters
Type | Name | Description |
---|---|---|
System. |
errorCode | assigned errorcode |
ConnectionException(Int32, String)
Overloaded constructor
Declaration
public ConnectionException(int errorCode, string reason)
Parameters
Type | Name | Description |
---|---|---|
System. |
errorCode | assigned errorcode |
System. |
reason | exception message |
ConnectionException(Int32, String, String)
Overloaded constructor
Declaration
public ConnectionException(int errorCode, string reason, string stackTrace)
Parameters
Type | Name | Description |
---|---|---|
System. |
errorCode | assigned errorcode |
System. |
reason | exception message |
System. |
stackTrace | stacktrace |
ConnectionException(Int32, String, IPAddress, Int32)
Overloaded constructor
Declaration
public ConnectionException(int errorCode, string reason, IPAddress ipAddress, int port)
Parameters
Type | Name | Description |
---|---|---|
System. |
errorCode | assigned errorcode |
System. |
reason | exception message |
System. |
ipAddress | |
System. |
port |
ConnectionException(Int32, IPAddress, Int32)
Overloaded constructor
Declaration
public ConnectionException(int errorCode, IPAddress ipAddress, int port)
Parameters
Type | Name | Description |
---|---|---|
System. |
errorCode | assigned errorcode |
System. |
ipAddress | |
System. |
port |
ConnectionException(SerializationInfo, StreamingContext)
Overloaded constructor, manual serialization.
Declaration
protected ConnectionException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System. |
info | |
System. |
context |