/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright (C) 2011-2015 by The HDF Group. * * All rights reserved. * * * * This file is part of the H4CF conversion toolkit. The full H4CF conversion* * toolkit copyright notice including terms governing use, modification, and * * redistribution, is contained in the files COPYING and Copyright.html. * * COPYING and Copyright.html can be found at the root of the source code * * distribution tree. * * For questions contact eoshelp@hdfgroup.org or help@hdfgroup.org. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /***************************************************************************** Category: Header file for the eoslib namespace Description: This file is a wrapper for all errors. *****************************************************************************/ #ifndef EOSLIB_ERR #define EOSLIB_ERR #include #define DEF_EXCEPTION(NAME) \ class NAME: public std::runtime_error { \ public: \ NAME (std::string msg): std::runtime_error(msg) {} }; #define STRINGIFY(x) #x #define TOSTRING(x) STRINGIFY(x) #endif