- const char *file_name,
- const char *function_name,
- unsigned int line_number) :
- std::runtime_error(msg + " " + format_throw_location(file_name, function_name, line_number))
+ const lttng::source_location& location) :
+ std::runtime_error(msg), source_location(location)
+{
+}
+
+lttng::allocation_failure::allocation_failure(const std::string& msg,
+ std::size_t allocation_size_,
+ const lttng::source_location& location) :
+ lttng::runtime_error(msg, location), allocation_size(allocation_size_)
+{
+}
+
+lttng::out_of_range::out_of_range(const std::string& msg, const lttng::source_location& location) :
+ lttng::runtime_error(msg, location)