MCPcopy Create free account
hub / github.com/BVLC/caffe / FormatSehExceptionMessage

Function FormatSehExceptionMessage

src/gtest/gtest-all.cpp:3321–3328  ·  view source on GitHub ↗

Adds an "exception thrown" fatal failure to the current test. This function returns its result via an output parameter pointer because VC++ prohibits creation of objects with destructors on stack in functions using __try (see error C2712).

Source from the content-addressed store, hash-verified

3319// prohibits creation of objects with destructors on stack in functions
3320// using __try (see error C2712).
3321static internal::String* FormatSehExceptionMessage(DWORD exception_code,
3322 const char* location) {
3323 Message message;
3324 message << "SEH exception with code 0x" << std::setbase(16) <<
3325 exception_code << std::setbase(10) << " thrown in " << location << ".";
3326
3327 return new internal::String(message.GetString());
3328}
3329
3330#endif // GTEST_HAS_SEH
3331

Calls

no outgoing calls

Tested by

no test coverage detected