use error code
Finish useErrorCodeCPP