ErrorCode

Function

Obtains the error code in the returned object.

Format

Code ErrorCode() const;

Parameters

None

Usage Example

Construct an Error object and obtain its error code.

1
Error(Error::Code::ERROR, "ERROR: Failed to get real path of home.").ErrorCode();

Return Value

Error code enumeration