Place util exceptions in the util namespace
This commit is contained in:
parent
c6a3831840
commit
6e82915975
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user