mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
Added implicit conversion to base types to all primary types (UInt32 et al) Added implicit conversion from System::String to const char*
44 lines
1.2 KiB
C++
44 lines
1.2 KiB
C++
/********************************************************
|
|
* NetworkException.h *
|
|
* *
|
|
* XFX NetworkException definition file *
|
|
* Copyright © XFX Team. All Rights Reserved *
|
|
********************************************************/
|
|
#ifndef _XFX_NET_NETWORKEXCEPTION_
|
|
#define _XFX_NET_NETWORKEXCEPTION_
|
|
|
|
#include <System/Exception.h>
|
|
#include "Enums.h"
|
|
|
|
using namespace System;
|
|
|
|
namespace XFX
|
|
{
|
|
namespace Net
|
|
{
|
|
// Thrown if there is a network communication failure.
|
|
class NetworkException : public Exception
|
|
{
|
|
public:
|
|
NetworkException();
|
|
NetworkException(char* message);
|
|
NetworkException(char* message, Exception innerException);
|
|
};
|
|
|
|
// Thrown if an error was encountered while joining a session.
|
|
class NetworkSessionJoinException : public NetworkException
|
|
{
|
|
public:
|
|
NetworkSessionJoinException();
|
|
NetworkSessionJoinException(char* message);
|
|
NetworkSessionJoinException(char* message, NetworkSessionJoinError joinError);
|
|
NetworkSessionJoinException(char* message, Exception innerException);
|
|
|
|
NetworkSessionJoinError JoinError(); //! get
|
|
void JoinError(NetworkSessionJoinError joinError); //! set
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif //_XFX_NET_NETWORKEXCEPTION_
|