MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / FileExceptionBase

Method FileExceptionBase

src/Exceptions.h:66–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64 std::string file_path;
65 std::string full_message;
66 FileExceptionBase(std::string message, std::string file_path="")
67 : ExceptionBase(message),
68 file_path(file_path),
69 full_message(message +
70 (file_path != ""
71 ? " for file " + file_path
72 : "")) { }
73 virtual const char* what() const noexcept override {
74 // Include file path in native C++ exception output (stderr / terminate).
75 return full_message.c_str();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected