Differences From Artifact [f58935f385]:
- File src/exceptions/OFException.h — part of check-in [cfd374b906] at 2015-01-03 20:57:18 on branch trunk — Update copyright (user: js, size: 3714) [annotate] [blame] [check-ins using]
To Artifact [81451deb50]:
- File
src/exceptions/OFException.h
— part of check-in
[62e2de30b9]
at
2015-02-16 08:39:17
on branch trunk
— Explicitly pass errno to exceptions
The old behaviour where the exception would access errno directly on
creation of the exception was very fragile. The two main problems with
it were that sometimes it would pick up an errno even though none had
been set and in other cases that when the exception was created errno
had already been overridden.This also greatly increases errno handling on Win32, especially in
conjunction with sockets. It can still be improved further, though. (user: js, size: 3823) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
162 163 164 165 166 167 168 | * @brief Returns a backtrace of when the exception was created or nil if no * backtrace is available. * * @return A backtrace of when the exception was created */ - (OFArray*)backtrace; @end | > > > > > > > > | 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 | * @brief Returns a backtrace of when the exception was created or nil if no * backtrace is available. * * @return A backtrace of when the exception was created */ - (OFArray*)backtrace; @end #ifdef __cplusplus extern "C" { #endif extern OFString* of_strerror(int errNo); #ifdef __cplusplus } #endif |