DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Loading...
Searching...
No Matches
SocketException.h
Go to the documentation of this file.
1
3
4#pragma once
5
6#include "Common.h"
8
9namespace DotNetDupe {
10 namespace System {
11 namespace Net {
12 namespace Sockets {
13
20 private:
21 int m_errorCode;
22
23 public:
27 DOTNETDUPE_API SocketException(int errorCode, const String& message);
28
31 DOTNETDUPE_API int GetErrorCode() const;
32 };
33
34 }
35 }
36 }
37}
Defines common cross-platform macros, export decorators, and fundamental types.
#define DOTNETDUPE_API
Platform-specific linkage decoration for exporting or importing library symbols.
Definition Common.h:20
Serves as the base class for system exceptions across the library.
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