I am looking for non-vulgar code that throws an exception when a UNIxs, and more specifically linux, system function returns an error.
Said code should skip throwing exceptions when there is no error. ( For example when errno is EAGAIN for a nonblocking read ). And preferably contain FILE and LINE of the line that the exception is thrown from.
I am very much uncertain whiat is going on with the new exception system and in particular the differences between system_catecories and generic_categories and where errno and strerror fit into it all.