Specs
Beautiful C++ Test Framework
Loading...
Searching...
No Matches
SpecExceptionMessage.h
Go to the documentation of this file.
1#pragma once
2
3#include <Specs/API.h>
4
5#include <string>
6#include <string_view>
7
8namespace SpecsCpp {
9
11 std::string _message;
12
13 public:
14 SpecExceptionMessage(std::string_view message) : _message(message) {}
15
16 const char* message() const override { return _message.c_str(); }
17 };
18}
const char * message() const override
SpecExceptionMessage(std::string_view message)
Definition API.h:3