13 #ifndef STXXL_EXCEPTIONS_H_
14 #define STXXL_EXCEPTIONS_H_
20 #include <stxxl/bits/namespace.h>
23 __STXXL_BEGIN_NAMESPACE
25 class io_error :
public std::ios_base::failure
28 io_error() throw () : std::ios_base::failure("") { }
29 io_error(
const std::string & msg_)
throw () :
30 std::ios_base::failure(msg_)
34 class resource_error :
public std::runtime_error
37 resource_error() throw () : std::runtime_error("") { }
38 resource_error(
const std::string & msg_)
throw () :
39 std::runtime_error(msg_)
43 class bad_ext_alloc :
public std::runtime_error
46 bad_ext_alloc() throw () : std::runtime_error("") { }
47 bad_ext_alloc(
const std::string & msg_)
throw () :
48 std::runtime_error(msg_)
54 #endif // !STXXL_EXCEPTIONS_H_