5#include <system/exceptions.h>
7#include <net/sockets/socket_error.h>
9namespace System {
namespace Net {
namespace Sockets {
11class Details_SocketException;
25 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
29 friend class System::ExceptionWrapperHelper;
56 MEMBER_FUNCTION_MAKE_OBJECT(
Details_SocketException, CODEPORTING_ARGS(int32_t errorCode), CODEPORTING_ARGS(errorCode));
78 int32_t m_errorCode = 0;
Represents an exception. Never create instances of this class manually. Use the Exception class inste...
Definition: exception.h:277
Template that represents wrapper of exceptions that are derived from Exception class.
Definition: exception.h:113
Represents the exception thrown when a socket error occurs. Never create instances of this class manu...
Definition: socket_exception.h:18
Details_SocketException()
Constructs a new instance.
Details_SocketException(const System::String &message)
Constructs a new instance.
void set_ErrorCode(int32_t code)
Sets the error code.
SocketError get_SocketErrorCode()
Gets the socket error code.
Details_SocketException(const System::String &message, int32_t errorCode)
Constructs a new instance.
Details_SocketException(std::nullptr_t)
Constructs a new instance.
void DoThrow(const ExceptionPtr &self) const override
Throws exception instance wrapped by exception wrapper.
Details_SocketException(int32_t errorCode)
Constructs a new instance.
void set_SocketErrorCode(SocketError socketError)
Sets the socket error code.
Details_SocketException(SocketError socketError)
Constructs a new instance.
int32_t get_ErrorCode()
Gets the error code.
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
SocketError
Enumerates the socket error types.
Definition: socket_error.h:13
@ Success
A socket operation completed successfully.
Definition: db_command.h:9