MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / what

Method what

3rd/asio-1.24.0/include/asio/system_error.hpp:84–106  ·  view source on GitHub ↗

Get a string representation of the exception.

Source from the content-addressed store, hash-verified

82
83 /// Get a string representation of the exception.
84 virtual const char* what() const throw ()
85 {
86#if !defined(ASIO_NO_EXCEPTIONS)
87 try
88#endif // !defined(ASIO_NO_EXCEPTIONS)
89 {
90 if (!what_.get())
91 {
92 std::string tmp(context_);
93 if (tmp.length())
94 tmp += ": ";
95 tmp += code_.message();
96 what_.reset(new std::string(tmp));
97 }
98 return what_->c_str();
99 }
100#if !defined(ASIO_NO_EXCEPTIONS)
101 catch (std::exception&)
102 {
103 return "system_error";
104 }
105#endif // !defined(ASIO_NO_EXCEPTIONS)
106 }
107
108 /// Get the error code associated with the exception.
109 error_code code() const

Callers 15

formatFunction · 0.45
range_formatFunction · 0.45
type_formatFunction · 0.45
update_configFunction · 0.45
diagnose_fileFunction · 0.45
set_default_configFunction · 0.45
set_nonstandard_symbolFunction · 0.45
spell_analysisFunction · 0.45
update_name_style_configFunction · 0.45

Calls 3

messageMethod · 0.80
getMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected