Skip to content

Instantly share code, notes, and snippets.

@ghl3
Created June 13, 2012 15:14
Show Gist options
  • Select an option

  • Save ghl3/2924685 to your computer and use it in GitHub Desktop.

Select an option

Save ghl3/2924685 to your computer and use it in GitHub Desktop.
Custom Runtime Exception
#include <stdexcept>
class my_custom_exception : public std::runtime_error {
public:
my_custom_exception(const std::string& msg):std::runtime_error(msg){};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment