Moby
InvalidVelocityException.h
1 /****************************************************************************
2  * Copyright 2014 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 _MOBY_INVALID_VELOCITY_EXCEPTION_H_
8 #define _MOBY_INVALID_VELOCITY_EXCEPTION_H_
9 
10 #include <stdexcept>
11 
12 namespace Moby {
13 
15 class InvalidVelocityException : public std::runtime_error
16 {
17  public:
18  InvalidVelocityException(double t) : std::runtime_error("Integrator tries to evaluate derivative at invalid velocity") { evaluation_time = t; }
19  double evaluation_time;
20 }; // end class
21 
22 } // end namespace
23 
24 #endif
25 
Exception thrown when an integrator tries to evaluate a derivative at an invalid velocity.
Definition: InvalidVelocityException.h:15