forked from pz4kybsvg/Conception
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
402 B
19 lines
402 B
2 years ago
|
#pragma once
|
||
|
|
||
|
#include <stdexcept>
|
||
|
#include <string>
|
||
|
|
||
|
namespace drake {
|
||
|
namespace internal {
|
||
|
|
||
|
// This is what DRAKE_ASSERT and DRAKE_DEMAND throw when our assertions are
|
||
|
// configured to throw.
|
||
|
class assertion_error : public std::runtime_error {
|
||
|
public:
|
||
|
explicit assertion_error(const std::string& what_arg)
|
||
|
: std::runtime_error(what_arg) {}
|
||
|
};
|
||
|
|
||
|
} // namespace internal
|
||
|
} // namespace drake
|