![]() |
KVIrc
4.9.2
DeveloperAPIs
|
This namespace handle the error codes. More...
Functions | |
| QString | getDescription (KviError::Code eError) |
| Returns the description of the error. More... | |
| const char * | getUntranslatedDescription (KviError::Code eError) |
| Returns an untranslated description of the error. More... | |
| KviError::Code | translateSystemError (int iErrNo) |
| Gets system errors and returns their code number. More... | |
This namespace handle the error codes.
| enum KviError::Code |
Contains all error codes.
| KVILIB_API QString KviError::getDescription | ( | KviError::Code | eError | ) |
Returns the description of the error.
| eError | The code number of the error |
References __tr2qs_no_xgettext, and getUntranslatedDescription().
Referenced by KviDnsResolver::errorString(), DccChatWindow::event(), DccVoiceWindow::event(), DccVideoWindow::event(), DccFileTransfer::event(), DccChatWindow::handleMarshalError(), DccVoiceWindow::handleMarshalError(), DccVideoWindow::handleMarshalError(), DccFileTransfer::handleMarshalError(), KviIrcConnection::hostNameLookupTerminated(), KviThreadManager::KviThreadManager(), KviIrcSocket::raiseError(), and KviIrcLink::resolverTerminated().
| KVILIB_API const char * KviError::getUntranslatedDescription | ( | KviError::Code | eError | ) |
Returns an untranslated description of the error.
| eError | The code number of the error |
References ErrorCount, g_errorTable, and UnknownError.
Referenced by getDescription().
| KVILIB_API KviError::Code KviError::translateSystemError | ( | int | iErrNo | ) |
Gets system errors and returns their code number.
| iErrNo | The code number of the system error |
References AccessDenied, AddressAlreadyInUse, BadFileDescriptor, BrokenPipe, CantAssignRequestedAddress, ConnectionRefused, ConnectionResetByPeer, ConnectionTimedOut, HostUnreachable, InsufficientResources, KernelNetworkingPanic, NetworkUnreachable, OutOfAddressSpace, SocketNotConnected, UnknownError, and UnsupportedAddressFamily.
Referenced by DccMarshal::doConnect(), DccMarshal::doSSLHandshake(), KviIrcSocket::doSSLHandshake(), KviIrcSocket::flushSendQueue(), DccThread::handleInvalidSocketRead(), KviIrcSocket::handleInvalidSocketRead(), KviThreadManager::KviThreadManager(), DccSendThread::run(), DccMarshal::snActivated(), KviIrcSocket::startConnection(), DccChatThread::tryFlushOutBuffers(), and KviIrcSocket::writeNotifierFired().
1.8.7