StatusCode

Function

Obtains the error code of a status object.

Format

Error::Code StatusCode() const;

Parameters

None

Usage Example

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

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

Return Value

Error code enumeration.