MCPcopy Create free account
hub / github.com/coin-or/CppAD / ErrorHandler

Method ErrorHandler

include/cppad/utility/error_handler.hpp:140–151  ·  view source on GitHub ↗

construct a new handler

Source from the content-addressed store, hash-verified

138
139 // construct a new handler
140 ErrorHandler(Handler handler) : previous( Current() )
141 { if( local::set_get_in_parallel() )
142 { bool known = true;
143 int line = __LINE__;
144 const char* file = __FILE__;
145 const char* exp = "! local::set_get_in_parallel()";
146 const char* msg =
147 "Using ErrorHandler constructor in parallel mode.";
148 Call(known, line, file, exp, msg);
149 }
150 Current() = handler;
151 }
152
153 // destructor for an error handler
154 ~ErrorHandler(void)

Callers

nothing calls this directly

Calls 1

set_get_in_parallelFunction · 0.85

Tested by

no test coverage detected