solinject  1.0.0
C++17 Dependency Injection header-only library
DIException.hpp
Go to the documentation of this file.
1 // SPDX-License-Identifier: LGPL-3.0-or-later
2 
3 /*
4  * solinject - C++ Dependency Injection header-only library
5  * Copyright (C) 2022 SemperSolus0x3d
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU Lesser General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public License
18  * along with this program. If not, see <https://www.gnu.org/licenses/>.
19  */
20 
22 
23 #pragma once
24 #include <stdexcept>
25 #include <string>
26 
27 namespace sol::di::exc
28 {
31  {
32  public:
37  DIException(const char* message) :
38  std::logic_error(message)
39  {
40  }
41 
46  DIException(const std::string& message) :
47  std::logic_error(message)
48  {
49  }
50  };
51 }
std::string
sol::di::exc::DIException
Base class for solinject exceptions.
Definition: DIException.hpp:30
sol::di::exc::DIException::DIException
DIException(const char *message)
Constructor.
Definition: DIException.hpp:37
std::logic_error
std
sol::di::exc::DIException::DIException
DIException(const std::string &message)
Constructor.
Definition: DIException.hpp:46