rendered paste body#ifndef _C_ERROR_#define _C_ERROR_#include <iostream>#include <string>using namespace std;/* errors's management *//* ~~~ socket's error ~~~ */class initError //socket initialization's error{ private: string m_cause; public: initError(string buffer); ~initError(); void error(); void solution();};class addressError //socket adressing's error{ private: string m_cause; public: addressError(string buffer); ~addressError(); void error(); void solution();};class portError //socket port definition's error{ private: string m_cause; public: portError(string buffer); ~portError(); void error(); void solution();};class connectError //connection's error{ private: string m_cause; public: connectError(string buffer); ~connectError(); void error(); void solution();};class sendError //sending's error{ private: string m_cause; int m_type; public: sendError(int a, string buffer); ~sendError(); void error(); void solution();};class recvError //reception's error{ private: string m_cause; public: recvError(string buffer); ~recvError(); void error(); void solution();};class closeError //socket closing's error{ private: string m_cause; public: closeError(string buffer); ~closeError(); void error(); void solution();};/* ~~~ parsing's error ~~~ */class getLineError //getLine error{ public: getLineError(); ~getLineError(); void error(); void solution();};class parseError //parsing error{ private: string m_when; public: parseError(string buffer); ~parseError(); void error(); void solution();};/*class setBufferError{ private: int m_capacity; int m_lenght; public: setBufferError(int a, int b); ~setBufferError(); void error(); void solution();};*/#endif