8#ifndef __CLIB_UTILS_H__
9#define __CLIB_UTILS_H__
15#include "../clib/Cabinet.h"
41 }
catch (std::exception& err) {
42 std::cerr <<
"Cantera: caught an instance of "
43 << err.what() << std::endl;
45 return otherErrorCode;
47 std::cerr <<
"Cantera: caught an instance of "
48 "an unknown exception type" << std::endl;
50 return otherErrorCode;
static Application * Instance()
Return a pointer to the one and only instance of class Application.
void addError(const string &r, const string &msg="")
Set an error condition in the application class without throwing an exception.
Base class for exceptions thrown by Cantera classes.
const char * what() const override
Get a description of the error.
Definitions for the classes that are thrown when Cantera experiences an error condition (also contain...
Namespace for the Cantera kernel.
T handleAllExceptions(T ctErrorCode, T otherErrorCode)
Exception handler used at language interface boundaries.