Drake
drake_assertion_error.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <stdexcept>
4 #include <string>
5 
7 
8 namespace drake {
9 namespace detail {
10 
13 class assertion_error : public std::runtime_error {
14  public:
15  explicit assertion_error(const std::string& what_arg)
16  : std::runtime_error(what_arg) {}
17 };
18 
19 } // namespace detail
20 } // namespace drake
assertion_error(const std::string &what_arg)
Definition: drake_assertion_error.h:15
Definition: automotive_demo.cc:88
This header provides a std::make_unique implementation to be used when the compiler does not support ...
STL namespace.
This is what DRAKE_ASSERT and DRAKE_DEMAND throw when our assertions are configured to throw...
Definition: drake_assertion_error.h:13