Ravelin
NumericalException.h
1 /****************************************************************************
2  * Copyright 2008 Evan Drumwright
3  * This library is distributed under the terms of the Apache V2.0
4  * License (obtainable from http://www.apache.org/licenses/LICENSE-2.0).
5  ****************************************************************************/
6 
7 #ifndef _NUMERICAL_EXCEPTION_H_
8 #define _NUMERICAL_EXCEPTION_H_
9 
10 #include <stdexcept>
11 
12 namespace Ravelin {
13 
15 class NumericalException : public std::runtime_error
16 {
17  public:
18  NumericalException() : std::runtime_error("NumericalException error") {}
19  NumericalException(const char* error) : std::runtime_error(error) {}
20 }; // end class
21 
22 
23 } // end namespace
24 
25 #endif
26 
Exception thrown when general numerical error occurs.
Definition: NumericalException.h:15