MCPcopy Create free account
hub / github.com/Project-OSRM/osrm-backend / exception

Class exception

include/util/exception.hpp:40–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38{
39
40class exception : public std::exception
41{
42 public:
43 explicit exception(const char *message) : message(message) {}
44 explicit exception(std::string message) : message(std::move(message)) {}
45 const char *what() const noexcept override { return message.c_str(); }
46
47 private:
48 // This function exists to 'anchor' the class, and stop the compiler from
49 // copying vtable and RTTI info into every object file that includes
50 // this header. (Caught by -Wweak-vtables under Clang.)
51 virtual void anchor() const;
52 const std::string message;
53};
54
55/**
56 * Indicates a class of error that occurred that was caused by some kind of

Callers 15

mainFunction · 0.85
RunMethod · 0.85
GetStaticFilesMethod · 0.85
GetUpdatableFilesMethod · 0.85
PopulateUpdatableDataMethod · 0.85
WaitForDetachFunction · 0.85
makeSharedMemoryFunction · 0.85
getLockDirFunction · 0.85
handle_lua_errorFunction · 0.85
InitContextMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected