From 4e6cebbb431222a5d8fa3bc62d5de44c93c8a93e Mon Sep 17 00:00:00 2001 From: astrojhgu Date: Sat, 22 Aug 2009 09:40:53 +0000 Subject: git-svn-id: file:///home/svn/opt_utilities@48 ed2142bd-67ad-457f-ba7c-d818d4011675 --- core/opt_exception.hpp | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) (limited to 'core/opt_exception.hpp') diff --git a/core/opt_exception.hpp b/core/opt_exception.hpp index 65e4470..4413da7 100644 --- a/core/opt_exception.hpp +++ b/core/opt_exception.hpp @@ -1,9 +1,16 @@ +/** + \file opt_exception.hpp +*/ + #ifndef OPT_EXCEPTION #define OPT_EXCEPTION #include #include namespace opt_utilities { + /** + the root class of exception used in opt_utilities + */ class opt_exception :public std::exception { @@ -26,6 +33,10 @@ namespace opt_utilities } }; + /** + When objection is not defined in optimizer, and optimizion is performing, + this exception will be thrown + */ class target_function_undefined :public opt_exception { @@ -35,6 +46,10 @@ namespace opt_utilities {} }; + /** + When the opt_method is not defined before the optimization is performing, + this exception will be thrown. + */ class opt_method_undefined :public opt_exception { @@ -44,6 +59,10 @@ namespace opt_utilities {} }; + /** + When fitter is not attached in a model, statistic, and other objects, + this exception will be thrown. + */ class fitter_unset :public opt_exception { @@ -53,6 +72,11 @@ namespace opt_utilities {} }; + + /** + When the model is not set before the model fitting, + this exception will be thrown. + */ class model_undefined :public opt_exception { @@ -62,6 +86,11 @@ namespace opt_utilities {} }; + + /** + When the data set is not loaded before the model fitting, + this exception will be thrown. + */ class data_unloaded :public opt_exception { @@ -72,6 +101,10 @@ namespace opt_utilities }; + /** + When the statistic is not set before the model fitting, + this exception will be thrown. + */ class statistic_undefined :public opt_exception { @@ -81,6 +114,11 @@ namespace opt_utilities {} }; + + /** + If a parameter is not found by the name or other information, + this exception will be thrown. + */ class param_not_found :public opt_exception { @@ -90,6 +128,11 @@ namespace opt_utilities {} }; + + /** + If param_modifier is not defined, and the user tries to get the + param_modifer, this exception will be thrown. + */ class param_modifier_undefined :public opt_exception { -- cgit v1.2.2