Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

BOOL PChannel::SetErrorValues ( Errors  errorCode,
int  osError,
ErrorGroup  group = LastGeneralError 
) [protected, inherited]

Set error values to those specified. Return TRUE if errorCode is NoError, FALSE otherwise

Parameters:
errorCodeError code to translate.
osErrorOS error number to translate.
groupError group to set

Definition at line 678 of file pchannel.cxx.

References PChannel::lastErrorCode, and PChannel::lastErrorNumber.

Referenced by PSoundChannelWin32::Abort(), PSoundChannelOSS::AreAllRecordBuffersFull(), PSoundChannelWin32::Close(), PEthSocket::Connect(), PChannel::ConvertOSError(), PEthSocket::EnumIpAddress(), PEthSocket::GetAddress(), PSoundChannelSunAudio::GetBuffers(), PSoundChannelOSS::GetBuffers(), PEthSocket::GetFilter(), PEthSocket::GetMedium(), PSoundChannelWin32::GetVolume(), PSoundChannelSunAudio::HasPlayCompleted(), PSoundChannelOSS::HasPlayCompleted(), PSoundChannelALSA::HasPlayCompleted(), PSoundChannelSunAudio::IsRecordBufferFull(), PSoundChannelOSS::IsRecordBufferFull(), PICMPSocket::Ping(), PSoundChannelWin32::PlayFile(), PSoundChannelSunAudio::PlayFile(), PSoundChannelOSS::PlayFile(), PSoundChannelALSA::PlayFile(), PSoundChannelWin32::PlaySound(), PSoundChannelSunAudio::PlaySound(), PSoundChannelOSS::PlaySound(), PSoundChannelALSA::PlaySound(), PSoundChannelWin32::Read(), PEthSocket::Read(), PQueueChannel::Read(), PSoundChannelSunAudio::Read(), PInternetProtocol::ReadResponse(), PHTTPClient::ReadResponse(), PSoundChannelWin32::RecordFile(), PSoundChannelOSS::RecordFile(), PSoundChannelWin32::RecordSound(), PSoundChannelOSS::RecordSound(), PSoundChannelSunAudio::SetBuffers(), PSoundChannelOSS::SetBuffers(), PEthSocket::SetFilter(), PSoundChannelOSS::SetFormat(), PSoundChannelALSA::SetFormat(), PSoundChannelWin32::SetVolume(), PSoundChannelWin32::StartRecording(), PSoundChannelOSS::StartRecording(), PSoundChannelSunAudio::WaitForPlayCompletion(), PSoundChannelOSS::WaitForPlayCompletion(), PSoundChannelALSA::WaitForPlayCompletion(), PSoundChannelSunAudio::WaitForRecordBufferFull(), PSoundChannelOSS::WaitForRecordBufferFull(), PSoundChannelWin32::Write(), PEthSocket::Write(), PQueueChannel::Write(), and PSoundChannelSunAudio::Write().

{
  lastErrorCode[NumErrorGroups] = lastErrorCode[group] = errorCode;
  lastErrorNumber[NumErrorGroups] = lastErrorNumber[group] = errorNum;
  return errorCode == NoError;
}

Generated by  Doxygen 1.6.0   Back to index