Tapkee
exceptions.hpp
Go to the documentation of this file.
00001 /* This software is distributed under BSD 3-clause license (see LICENSE file).
00002  *
00003  * Copyright (c) 2012-2013 Sergey Lisitsyn
00004  */
00005 
00006 #ifndef TAPKEE_EXCEPTIONS_H_
00007 #define TAPKEE_EXCEPTIONS_H_
00008 
00009 #include <stdexcept>
00010 #include <string>
00011 
00012 namespace tapkee
00013 {
00014 
00017 class wrong_parameter_error : public std::logic_error
00018 {
00019     public:
00021         explicit wrong_parameter_error(const std::string& what_msg) : 
00022             std::logic_error(what_msg) {};
00023 };
00024 
00027 class wrong_parameter_type_error : public std::logic_error
00028 {
00029     public:
00031         explicit wrong_parameter_type_error(const std::string& what_msg) : 
00032             std::logic_error(what_msg) {};
00033 };
00034 
00037 class missed_parameter_error : public std::logic_error
00038 {
00039     public:
00041         explicit missed_parameter_error(const std::string& what_msg) : 
00042             std::logic_error(what_msg) {};
00043 };
00044 
00047 class unsupported_method_error : public std::logic_error
00048 {
00049     public:
00051         explicit unsupported_method_error(const std::string& what_msg) : 
00052             std::logic_error(what_msg) {};
00053 };
00054 
00057 class not_enough_memory_error : public std::runtime_error
00058 {
00059     public:
00061         explicit not_enough_memory_error(const std::string& what_msg) : 
00062             std::runtime_error(what_msg) {};
00063 };
00064 
00066 class multiple_parameter_error : public std::runtime_error
00067 {
00068     public:
00070         explicit multiple_parameter_error(const std::string& what_msg) : 
00071             std::runtime_error(what_msg) {};
00072 };
00073 
00076 class cancelled_exception : public std::exception
00077 {
00078     public:
00079         explicit cancelled_exception() : 
00080             std::exception() {};
00081 };
00082 
00085 class eigendecomposition_error : public std::runtime_error
00086 {
00087     public:
00089         explicit eigendecomposition_error(const std::string& what_msg) :
00090             std::runtime_error(what_msg) {};
00091 };
00092 
00093 }
00094 #endif
00095 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines