Opened 11 years ago

Closed 11 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 11 years ago by Peter

Owner: changed from Jari Häkkinen to Peter
Status: newassigned

comment:2 Changed 11 years ago by Peter

Resolution: fixed
Status: assignedclosed

(In [2209]) added an errno exception class (fixes #616) and implementing exception classes in source file (rather than inlining).

Note: See TracTickets for help on using tickets.