📄 bayesexception.hpp
字号:
#ifndef _BAYES_FILTER_EXCEPTION#define _BAYES_FILTER_EXCEPTION/* * Bayes++ the Bayesian Filtering Library * Copyright (c) 2002 Michael Stevens * See accompanying Bayes++.htm for terms and conditions of use. * * $Header: /cvsroot/bayesclasses/Bayes++/BayesFilter/bayesException.hpp,v 1.3.2.1 2004/02/11 21:06:42 mistevens Exp $ * $NoKeywords: $ *//* * Exception types: Exception heirarchy for Bayesian filtering */ // Common headers required for declerations#include <exception>/* Filter namespace */namespace Bayesian_filter{class Filter_exception : virtual public std::exception/* * Base class for all exception produced by filter heirachy */{public: const char *what() const throw() { return error_description; }protected: Filter_exception (const char* description) { error_description = description; };private: const char* error_description;};class Logic_exception : virtual public Filter_exception/* * Logic Exception */{public: Logic_exception (const char* description) : Filter_exception (description) {};};class Numeric_exception : virtual public Filter_exception/* * Numeric Exception */{public: Numeric_exception (const char* description) : Filter_exception (description) {};};}//namespace#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -