Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // COMPILING
- 13 [[nodiscard]] std::string message(int ev) const override {
- 14 switch (static_cast<ErrorCode>(ev)) {
- 15 case ErrorCode::NOT_RUNNING: {
- 16 return "The service is not running.";
- 17 }
- 18 case ErrorCode::CANNOT_START_SERVICE: {
- 19 return "Cannot start web service, unable to connect to server.";
- 20 }
- 21 case ErrorCode::CANNOT_STOP_SERVICE: {
- 22 return "Cannot stop web service.";
- 23 }
- 24 case ErrorCode::USER_NOT_FOUND:
- 25 return "No user was found.";
- 26 }
- 27 return ERROR_UNRECOGNISED_MSG;
- 28 }
- // AFTER CHANGE - NOT COMPILING
- 13 [[nodiscard]] std::string message(int ev) const override {
- 14 switch (static_cast<ErrorCode>(ev)) {
- 15 case ErrorCode::NOT_RUNNING: {
- 16 return "The service is not running.";
- 17 }
- 18 case ErrorCode::CANNOT_START_SERVICE: {
- 19 return "Cannot start web service, unable to connect to server.";
- 20 }
- 21 case ErrorCode::CANNOT_STOP_SERVICE: {
- 22 return "Cannot stop web service.";
- 23 }
- 24 case ErrorCode::USER_NOT_FOUND:
- 25 return "No user was found.";
- 26 }
- 27 case ErrorCode::MACHINE_SETTING_UPDATE_ERROR:
- 28 return "No user was found.";
- 29 }
- 30 return ERROR_UNRECOGNISED_MSG;
- 31 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement