First Last Prev Next    No search results available
Details
: GetLastError for Unix-like implementation
Bug#: 227
: AuxUtils Cpp
: AuxUtils Core
Status: CLOSED
Resolution: FIXED
: PC
: Linux
: 0.5
: Want Fix
: minor

:
Category: Bug Report
:
:
  Show dependency tree - Show dependency graph
People
Reporter: arufanov <arufanov@gmail.com>
Assigned To: Abdullah Abdurakhmanov <abdulla.abdurakhmanov@gmail.com>

Attachments


Note

You need to log in before you can comment on or make changes to this bug.

Related actions


Description:   Opened: 2008-01-31 08:18
For win32 implementation exception contains windows get last error rather that
for unix-like implementation. It would be good add (for example) last error to
exception for unix-like implementation. For example SharedSemaphore has two
implementation: for win32 and others. 

Win32 implementation:
                void SharedSemaphore::createHandle() {
....
                        if (!m_hSemaphore){
                                throw SystemException ( 
                                        boost::format( "Unable to create a
shared semaphore '%1%': %2%") %m_nId %getLastWindowsError()
                                );
                        }
                }

Unix-like implementations
                void SharedSemaphore::createHandle() {
....
                        if (m_hSemaphore == -1){
                                throw SystemException ( 
                                        boost::format( "Unable to create a
shared semaphore '%1%'") %m_nId
                                );
                        }
                }
------- Comment #1 From Abdullah Abdurakhmanov 2008-01-31 14:07:22 -------
Portable getLastOSErrorString() (instead getLastWindowsError()) has been added.

First Last Prev Next    No search results available