Ravelin
InvalidTransformException.h
1 /****************************************************************************
2  * Copyright 2009 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 _INVALID_TRANSFORM_EXCEPTION_H_
8 #define _INVALID_TRANSFORML_EXCEPTION_H_
9 
10 #include <stdexcept>
11 
12 namespace Ravelin {
13 
15 class InvalidTransformException : public std::runtime_error
16 {
17  public:
18  InvalidTransformException(const Matrix4& T) : std::runtime_error("Rotation component of matrix is invalid") {}
19  InvalidTransformException(const MatrixN& T) : std::runtime_error("Rotation component of matrix is invalid, or bottom row of matrix is not 0 0 0 1") {}
20 }; // end class
21 
22 
23 } // end namespace
24 
25 #endif
26 
Exception thrown when general numerical error occurs.
Definition: InvalidTransformException.h:15