Closed graysonguarino closed 1 year ago
Is
mir::AbnormalExit
only for issues upon comeup?
Mostly yes. It about the intended audience of the logged message. When, for example, the configuration doesn't allow Mir to run we want the message to provide help in correcting it (without raising an issue for us to respond to).
These are "expected" exceptions - handling wrong user input.
...
Invalid colour (xxx) given in program argument
(We could improve that text though)
Other exceptions can occur when something goes wrong during execution. For these the intended audience is us, and we want more diagnostic information:
...
ERROR: /build/ubuntu-frame/parts/ubuntu-frame/src/background_client.cpp(180): Throw in function void BackgroundClient::set_colour(const string&, unsigned char (&)[4])
Dynamic exception type: boost::wrapexcept<std::runtime_error>
std::exception::what: Invalid colour (xxx) given in program argument
Fixes #99. I am curious if this PR should include the same change for each
std::runtime_error
inbackground_client.cpp
. Ismir::AbnormalExit
only for issues upon comeup?