Checking program error code and reporting runtime errors.