I use a lot of libraries that have some kind of get_error function (eg. glGetError). What is the recommended way to handle errors with those kind of functions? Maybe let them throw an exception when encountering an error and try-catching the main? (Like in the dsource tutorial) How do you handle your errors?