Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

throw dmlc::Error #120

Merged
merged 4 commits into from Oct 16, 2019
Merged

throw dmlc::Error #120

merged 4 commits into from Oct 16, 2019

Conversation

chenqin
Copy link
Contributor

@chenqin chenqin commented Oct 15, 2019

XGBoost JNI only handles dmlc::Error from try catch clause, replace std::runtime_error with dmlc::Error could allow us gracefully handle rabit worker assertion errors and propagated to jvm layer

https://github.com/dmlc/xgboost/blob/master/src/c_api/c_api_error.h#L17
image

image

@CodingCat @trivialfis @hcho3

@chenqin chenqin changed the title thorw dmlc::Error throw dmlc::Error Oct 15, 2019
@chenqin
Copy link
Contributor Author

chenqin commented Oct 16, 2019

@hcho3 @trivialfis this should be straight forward change, can you guys help review?

@trivialfis trivialfis merged commit d22e080 into dmlc:master Oct 16, 2019
@chenqin
Copy link
Contributor Author

chenqin commented Oct 16, 2019

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants