WPILibC++ 2023.4.3
drake_assertion_error.h
Go to the documentation of this file.
1#pragma once
2
3#include <stdexcept>
4#include <string>
5
6namespace drake {
7namespace internal {
8
9// This is what DRAKE_ASSERT and DRAKE_DEMAND throw when our assertions are
10// configured to throw.
11class assertion_error : public std::runtime_error {
12 public:
13 explicit assertion_error(const std::string& what_arg)
14 : std::runtime_error(what_arg) {}
15};
16
17} // namespace internal
18} // namespace drake
Definition: drake_assertion_error.h:11
assertion_error(const std::string &what_arg)
Definition: drake_assertion_error.h:13
Definition: drake_assertion_error.h:6
Definition: Eigen_Colamd.h:50
Definition: StdDeque.h:50