// Copyright (C) 2012-2015 ChaosForge Ltd // http://chaosforge.org/ // // This file is part of Nova libraries. // For conditions of distribution and use, see copying.txt file in root folder. /** * @file exception.hh * @author Kornel Kisielewicz epyon@chaosforge.org * @brief nv exception bases */ #ifndef NV_STL_EXCEPTION_HH #define NV_STL_EXCEPTION_HH #include #include #include #include namespace nv { /** * NV logic_error. * * Inherits std::logic_error. */ class logic_error : public std::logic_error { public: explicit logic_error( const std::string& msg ) : std::logic_error( msg ) {} }; /** * NV runtime_error. * * Inherits std::runtime_error. */ class runtime_error : public std::runtime_error { public: explicit runtime_error( const std::string& msg ) : std::runtime_error( msg ) {} }; } #endif // NV_STL_EXCEPTION_HH