aboutsummaryrefslogtreecommitdiffstats
path: root/core/opt_exception.hpp
diff options
context:
space:
mode:
authorastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2009-08-22 09:40:53 +0000
committerastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2009-08-22 09:40:53 +0000
commit4e6cebbb431222a5d8fa3bc62d5de44c93c8a93e (patch)
tree3800e20f0eaaa0b9dd88d8fafa21e18e747ca01b /core/opt_exception.hpp
parent42ef6e5280c71ea770bf5a1a9bfb570d62b3c48e (diff)
downloadopt-utilities-4e6cebbb431222a5d8fa3bc62d5de44c93c8a93e.tar.bz2
git-svn-id: file:///home/svn/opt_utilities@48 ed2142bd-67ad-457f-ba7c-d818d4011675
Diffstat (limited to 'core/opt_exception.hpp')
-rw-r--r--core/opt_exception.hpp43
1 files changed, 43 insertions, 0 deletions
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 <string>
#include <exception>
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
{