diff options
Diffstat (limited to 'atf-c++/detail/exceptions.hpp')
-rw-r--r-- | atf-c++/detail/exceptions.hpp | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/atf-c++/detail/exceptions.hpp b/atf-c++/detail/exceptions.hpp index f655a84d8263..9bda62b163da 100644 --- a/atf-c++/detail/exceptions.hpp +++ b/atf-c++/detail/exceptions.hpp @@ -39,47 +39,6 @@ struct atf_error; namespace atf { -template< class T > -class not_found_error : - public std::runtime_error -{ - T m_value; - -public: - not_found_error(const std::string& message, const T& value) throw(); - - virtual ~not_found_error(void) throw(); - - const T& get_value(void) const throw(); -}; - -template< class T > -inline -not_found_error< T >::not_found_error(const std::string& message, - const T& value) - throw() : - std::runtime_error(message), - m_value(value) -{ -} - -template< class T > -inline -not_found_error< T >::~not_found_error(void) - throw() -{ -} - -template< class T > -inline -const T& -not_found_error< T >::get_value(void) - const - throw() -{ - return m_value; -} - class system_error : public std::runtime_error { int m_sys_err; mutable std::string m_message; |