31#ifndef CFGFILE__EXCEPTIONS_HPP__INCLUDED
32#define CFGFILE__EXCEPTIONS_HPP__INCLUDED
48template<
typename Trait =
string_trait_t >
50 :
public std::logic_error
55 : std::logic_error(
"Please use desc() method of the exception." )
56 , m_what( std::move( what ) )
65 const typename Trait::string_t &
desc() const noexcept
72 typename Trait::string_t m_what;
76#ifndef CFGFILE_DISABLE_STL
84 :
public std::logic_error
89 : std::logic_error( what )
90 , m_what( std::move( what ) )
~exception_t() noexcept
Definition exceptions.hpp:94
const string_trait_t::string_t & desc() const noexcept
Definition exceptions.hpp:99
exception_t(string_trait_t::string_t what)
Construct exception.
Definition exceptions.hpp:88
Exception in the library.
Definition exceptions.hpp:51
const Trait::string_t & desc() const noexcept
Definition exceptions.hpp:65
exception_t(typename Trait::string_t what)
Construct exception.
Definition exceptions.hpp:54
~exception_t() noexcept
Definition exceptions.hpp:60
Trait for std::string support.
Definition types.hpp:170
std::string string_t
String type.
Definition types.hpp:172