fw4spl
BadCast.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2015.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #ifndef __FWMEMORY_EXCEPTION_BADCAST_HPP__
8 #define __FWMEMORY_EXCEPTION_BADCAST_HPP__
9 
10 #include <fwCore/Exception.hpp>
11 
12 #include "fwMemory/config.hpp"
13 
14 namespace fwMemory
15 {
16 namespace exception
17 {
18 
23 struct FWMEMORY_CLASS_API BadCast : ::fwCore::Exception
24 {
25  BadCast( const std::string &err ) : ::fwCore::Exception(err)
26  {
27  }
28 };
29 
30 } // namespace exception
31 } // namespace fwMemory
32 
33 #endif // __FWMEMORY_EXCEPTION_BADCAST_HPP__
34 
The namespace fwMemory contains tools to manage memory. Use for dump.
Definition: SReader.hpp:20
Implements an exception class for bad cast.
Definition: BadCast.hpp:23