file src/ini_catch.cpp

[No description available] More…

Namespaces

Name
Gambit
TODO: see if we can use this one:

Detailed Description

Micro function useful from all sorts of other initialisation codes.


Authors

(add name and date if you modify)

Pat Scott (p.scott@imperial.ac.uk)

2015 Feb


Source code

//   GAMBIT: Global and Modular BSM Inference Tool
//   *********************************************
///  \file
///
///  Micro function useful from all sorts of other
///  initialisation codes.
///
///  *********************************************
///
///  Authors
///  =======
///
///  (add name and date if you modify)
///
///  \author Pat Scott
///          (p.scott@imperial.ac.uk)
///  \date 2015 Feb
///
///  *********************************************

#include <iostream>

#include "gambit/Elements/ini_catch.hpp"

namespace Gambit
{

  /// Catch initialisation exceptions
  void ini_catch(std::exception& e)
  {
    std::cout << "GAMBIT has failed to initialise due to a fatal exception: " << e.what() << std::endl;
    throw(e);
  }

}

Updated on 2023-06-26 at 21:36:55 +0000