StatusMsg

Function

Obtains the error message of a status object.

Format

std::string StatusMsg() const;

Parameters

None

Usage Example

Create a Status object and obtain the error message of the Status object.

1
2
auto status = Status(Error::Code::ERROR, "Engine init model failed: new modelBackend failed");
std::string string = status.StatusMsg();

Return Value

Error message, of the string type.