#include <SocketException.h>
Public Member Functions | |
SocketException () | |
SocketException (unsigned int cause) | |
Constructeur de la classe. | |
SocketException (const SocketException &s) | |
void | operator= (const SocketException &s) |
void | Afficher () const |
Affciher l'erreur. | |
Private Attributes | |
int | mCause |
Cause de l'erreur. |
Definition at line 27 of file SocketException.h.
SocketException::SocketException | ( | ) | [inline] |
SocketException::SocketException | ( | unsigned int | cause | ) | [inline] |
Constructeur de la classe.
cause | Code de l'erreur. |
Definition at line 35 of file SocketException.h.
References mCause.
00035 { mCause=cause; }
SocketException::SocketException | ( | const SocketException & | s | ) | [inline] |
void SocketException::operator= | ( | const SocketException & | s | ) | [inline] |
void SocketException::Afficher | ( | ) | const [inline] |
Affciher l'erreur.
Definition at line 43 of file SocketException.h.
References mCause.
Referenced by ServeurPrincipal::ServeurPrincipal(), TraitementComServeurJeu::TraitementComServeurJeu(), and TraitementComServeurPrincipal::TraitementComServeurPrincipal().
00043 { 00044 switch(mCause){ 00045 case 1:{ 00046 cerr<<"ERREUR: Impossible d'ouvrir la socket"<<endl; 00047 break; 00048 } 00049 case 2:{ 00050 cerr<<"ERREUR: Impossible de nommer la socket"<<endl; 00051 break; 00052 } 00053 case 3:{ 00054 cerr<<"ERREUR: Impossible d'obtenir l'adresse distante"<<endl; 00055 break; 00056 } 00057 case 4:{ 00058 cerr<<"ERREUR: Impossible d'établir une connexion avec l'hote distant"<<endl; 00059 break; 00060 } 00061 case 5:{ 00062 cerr<<"ERREUR: Impossible d'accepter la connexion entrante"<<endl; 00063 break; 00064 } 00065 case 6:{ 00066 cerr<<"ERREUR: Impossible d'envoyer le message"<<endl; 00067 break; 00068 } 00069 case 7:{ 00070 cerr<<"ERREUR: Impossible de recevoir le message"<<endl; 00071 break; 00072 } 00073 case 8:{ 00074 cerr<<"ERREUR: Destinataire du message inconnu"<<endl; 00075 break; 00076 } 00077 case 9:{ 00078 cerr<<"ERREUR: Extrémitée déconnecté"<<endl; 00079 break; 00080 } 00081 default:{ 00082 cerr<<"ERREUR: inconnue"<<endl; 00083 } 00084 } 00085 }
int SocketException::mCause [private] |
Cause de l'erreur.
Definition at line 90 of file SocketException.h.
Referenced by Afficher(), operator=(), and SocketException().