Opened 14 years ago
Closed 14 years ago
#616 closed request (fixed)
cerrno exception class
Reported by: | Peter | Owned by: | Peter |
---|---|---|---|
Priority: | major | Milestone: | yat 0.7 |
Component: | utility | Version: | trunk |
Keywords: | Cc: |
Description
Standard clib often returns non-zero to indicate an error and sets global variable errno to indicate type of error. In C++ it often preferable to communiate error by exceptions instead and therefore I would like an exception class
class { public: my_exception(std::string msg); }
for which the error message (msg
) is appended with the output of strerror(errno)
.
Change History (2)
comment:1 Changed 14 years ago by
Owner: | changed from Jari Häkkinen to Peter |
---|---|
Status: | new → assigned |
comment:2 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
(In [2209]) added an errno exception class (fixes #616) and implementing exception classes in source file (rather than inlining).