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
8
namespace
SpecsCpp
{
9
10
class
SpecExceptionMessage
:
public
ILocalSpecExceptionHandler::IExceptionMessage
{
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
}
API.h
SpecsCpp::SpecExceptionMessage
Definition
SpecExceptionMessage.h:10
SpecsCpp::SpecExceptionMessage::message
const char * message() const override
Definition
SpecExceptionMessage.h:16
SpecsCpp::SpecExceptionMessage::SpecExceptionMessage
SpecExceptionMessage(std::string_view message)
Definition
SpecExceptionMessage.h:14
SpecsCpp
Definition
API.h:3
SpecsCpp::ILocalSpecExceptionHandler::IExceptionMessage
Definition
API.h:372
Specs.Implementations
include
Specs
SpecExceptionMessage.h
<3 Mrowr Purr