mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
WARNING!!! This revision cannot compile correctly. It is updated to reflect the many changes within the XFX project.
40 lines
1.1 KiB
C++
40 lines
1.1 KiB
C++
#ifndef _XFX_NET_NETWORKEXCEPTION_
|
|
#define _XFX_NET_NETWORKEXCEPTION_
|
|
|
|
#include <System/Exception.h>
|
|
#include "Enums.h"
|
|
|
|
namespace XFX
|
|
{
|
|
namespace Net
|
|
{
|
|
/// <summary>
|
|
/// Thrown if there is a network communication failure.
|
|
/// </summary>
|
|
class NetworkException : Exception
|
|
{
|
|
public:
|
|
public NetworkException();
|
|
public NetworkException(char* message);
|
|
public NetworkException(char* message, Exception innerException);
|
|
};
|
|
|
|
/// <summary>
|
|
/// Thrown if an error was encountered while joining a session.
|
|
/// </summary>
|
|
class NetworkSessionJoinException : NetworkException
|
|
{
|
|
public:
|
|
public NetworkSessionJoinException();
|
|
public NetworkSessionJoinException(char* message);
|
|
public NetworkSessionJoinException(char* message, NetworkSessionJoinError joinError);
|
|
public NetworkSessionJoinException(char* message, Exception innerException);
|
|
|
|
public NetworkSessionJoinError JoinError(); //! get
|
|
public void JoinError(NetworkSessionJoinError joinError); //! set
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif //_XFX_NET_NETWORKEXCEPTION_
|