14 #ifndef STXXL_EXCEPTIONS_H_
15 #define STXXL_EXCEPTIONS_H_
21 #include <stxxl/bits/namespace.h>
24 __STXXL_BEGIN_NAMESPACE
26 class io_error :
public std::ios_base::failure
30 std::ios_base::failure("")
33 io_error(
const std::string & msg_)
throw () :
34 std::ios_base::failure(msg_)
38 class resource_error :
public std::runtime_error
41 resource_error() throw () :
42 std::runtime_error("")
45 resource_error(
const std::string & msg_)
throw () :
46 std::runtime_error(msg_)
50 class bad_ext_alloc :
public std::runtime_error
53 bad_ext_alloc() throw () :
54 std::runtime_error("")
57 bad_ext_alloc(
const std::string & msg_)
throw () :
58 std::runtime_error(msg_)
62 class bad_parameter :
public std::runtime_error
65 bad_parameter() throw () :
66 std::runtime_error("")
69 bad_parameter(
const std::string & msg_)
throw () :
70 std::runtime_error(msg_)
74 class unreachable :
public std::runtime_error
77 unreachable() throw () :
78 std::runtime_error("")
81 unreachable(
const std::string & msg_)
throw () :
82 std::runtime_error(msg_)
88 #endif // !STXXL_EXCEPTIONS_H_