Drake
drake_assertion_error.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <stdexcept>
4 #include <string>
5 
6 namespace drake {
7 namespace detail {
8 
9 /// This is what DRAKE_ASSERT and DRAKE_DEMAND throw when our assertions are
10 /// configured to throw.
11 class 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 detail
18 } // namespace drake
assertion_error(const std::string &what_arg)
Definition: drake_assertion_error.h:13
Definition: automotive_demo.cc:88
STL namespace.
This is what DRAKE_ASSERT and DRAKE_DEMAND throw when our assertions are configured to throw...
Definition: drake_assertion_error.h:11