Place util exceptions in the util namespace

This commit is contained in:
Danny Robson 2012-05-16 15:01:01 +10:00
parent c6a3831840
commit 6e82915975
2 changed files with 33 additions and 31 deletions

View File

@ -25,6 +25,7 @@
#include <cerrno>
using namespace std;
using namespace util;
/// Construct an errno_error from a given error value. The error value MUST signal an error at

View File

@ -26,6 +26,7 @@
#include <stdexcept>
namespace util {
class input_error : public std::runtime_error {
public:
input_error (const std::string &_what):
@ -71,6 +72,6 @@ class win32_error : public std::runtime_error {
static void throw_code (void);
};
#endif
}
#endif