OTest2
A C++ testing framework
exctestmarkin.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020 Ondrej Starek
3  *
4  * This file is part of OTest2.
5  *
6  * OTest2 is free software: you can redistribute it and/or modify it under
7  * the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation, either version 3 of the License,
9  * or (at your option) any later version.
10  *
11  * OTest2 is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14  * License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with OTest2. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #include <exctestmarkin.h>
21 
22 #include <utility>
23 
24 namespace OTest2 {
25 
27  const std::string& message_) :
28  message(message_) {
29 
30 }
31 
33  ExcTestMarkIn&& exc_) noexcept :
34  Exception(std::move(exc_)),
35  message(std::move(exc_.message)) {
36 
37 }
38 
40 
41 }
42 
43 std::string ExcTestMarkIn::reason() const {
44  return message;
45 }
46 
47 } /* -- namespace OTest2 */
OTest2::ExcTestMarkIn::reason
virtual std::string reason() const override
Get exception reason.
Definition: exctestmarkin.cpp:43
OTest2::ExcTestMarkIn
An exception thrown from the testmark deserializer.
Definition: exctestmarkin.h:33
exctestmarkin.h
OTest2::ExcTestMarkIn::ExcTestMarkIn
ExcTestMarkIn(const std::string &message_)
Ctor.
Definition: exctestmarkin.cpp:26
OTest2
Definition: assertbean.h:25
OTest2::Exception
Generic OTest2 exception.
Definition: exc.h:31
OTest2::ExcTestMarkIn::~ExcTestMarkIn
virtual ~ExcTestMarkIn()
Dtor.
Definition: exctestmarkin.cpp:39