DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Loading...
Searching...
No Matches
SocketException.cpp
Go to the documentation of this file.
1#include "pch.h"
3
4namespace DotNetDupe {
5 namespace System {
6 namespace Net {
7 namespace Sockets {
8 SocketException::SocketException(int errorCode, const String& message)
9 : SystemException(message) {
11 m_errorCode = errorCode;
12 }
13
16 return m_errorCode;
17 }
18 }
19 }
20 }
21}
Exception thrown when a network socket error occurs per RFC 793 / RFC 768.
int GetErrorCode() const
Gets the error code associated with this exception.
SocketException(int errorCode, const String &message)
Initializes a new instance of the SocketException class with the specified error code and message.
Represents text as a sequence of UTF-8 code units with culture-invariant operations.
Definition String.h:74
SystemException()
Initializes a new instance of the SystemException class with a default message.
Definition Exception.cpp:48