fw4spl
DuplicatedDataUUID.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2004-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 __FWATOMCONVERSION_EXCEPTION_DUPLICATEDDATAUUID_HPP__
8 #define __FWATOMCONVERSION_EXCEPTION_DUPLICATEDDATAUUID_HPP__
9 
10 #include <fwCore/Exception.hpp>
11 
12 #include "fwAtomConversion/config.hpp"
13 
14 namespace fwAtomConversion
15 {
16 namespace exception
17 {
18 
20 struct FWATOMCONVERSION_CLASS_API DuplicatedDataUUID : ::fwCore::Exception
21 {
22  FWATOMCONVERSION_API DuplicatedDataUUID( const std::string &err ) : ::fwCore::Exception(err)
23  {
24  }
25 };
26 
27 } // namespace exception
28 } // namespace fwAtomConversion
29 
30 #endif // __FWATOMCONVERSION_EXCEPTION_DUPLICATEDDATAUUID_HPP__
31 
This namespace contains the necessary class for fwData <-> fwAtoms conversion.
Throw this exception when a new data is created with a specific uuid, but this data already exists in...