mirror of
https://github.com/pantor/inja.git
synced 2026-03-29 20:32:44 +00:00
split dev files and amalgamate into a single header
This commit is contained in:
18
include/error.hpp
Normal file
18
include/error.hpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef PANTOR_INJA_ERROR_HPP
|
||||
#define PANTOR_INJA_ERROR_HPP
|
||||
|
||||
#include <string>
|
||||
|
||||
|
||||
namespace inja {
|
||||
|
||||
/*!
|
||||
@brief throw an error with a given message
|
||||
*/
|
||||
inline void inja_throw(const std::string& type, const std::string& message) {
|
||||
throw std::runtime_error("[inja.exception." + type + "] " + message);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif // PANTOR_INJA_ERROR_HPP
|
||||
Reference in New Issue
Block a user