virtual int GetErrorCode() = 0;
GetErrorCode return errno-based error code. Useful if any other function failed.
An int value containing the error code.