X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_Exception.h;h=023ced1a7e6fd7abedc4fb66472309559d6b9b38;hb=f71c1052b2ecc33488b2136947088777adc17584;hp=790af42b543df0dc8a5d103cc7d6b824e6871ca5;hpb=6f2932a147e8e5b2eb226b8fea2c2bf9fec16a0e;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Exception.h b/src/GeomAlgoAPI/GeomAlgoAPI_Exception.h index 790af42b5..023ced1a7 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Exception.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Exception.h @@ -1,4 +1,21 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D +// Copyright (C) 2014-2020 CEA/DEN, EDF R&D +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// #ifndef GeomAlgoAPI_Exception_H_ #define GeomAlgoAPI_Exception_H_ @@ -13,18 +30,18 @@ */ class GeomAlgoAPI_Exception : public std::exception { - public: + public: /// Create an exception /// \param theMessageError Error message to be displayed GEOMALGOAPI_EXPORT GeomAlgoAPI_Exception(std::string theMessageError); - /// Destroyer - GEOMALGOAPI_EXPORT ~GeomAlgoAPI_Exception() throw(); - /// Allows to collet the error - GEOMALGOAPI_EXPORT const char* what() const throw(); - + /// Destroyer + GEOMALGOAPI_EXPORT ~GeomAlgoAPI_Exception() noexcept; + /// Allows to collet the error + GEOMALGOAPI_EXPORT const char* what() const noexcept; + private: std::string myMessageError; /// Error message to be displayed. }; -#endif \ No newline at end of file +#endif