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

WIP: Better DomainError's #9693

Closed
wants to merge 18 commits into from
Closed

WIP: Better DomainError's #9693

wants to merge 18 commits into from

Conversation

jakebolewski
Copy link
Member

This adds a msg field to DomainError which allows us to provide some context to the source of the error without special casing the error message in base/replutil.jl. Currently the DomainError's thrown by intrinsic functions are not working properly, but I haven't worked on that part yet.

@jakebolewski jakebolewski added the domain:error handling Handling of exceptions by Julia or the user label Jan 9, 2015
@ivarne
Copy link
Sponsor Member

ivarne commented Jan 9, 2015

How is this for performance? I suggested this a long time ago, but @JeffBezanson objected because it would cause string allocation in some critical places.

@jakebolewski
Copy link
Member Author

It would follow the same general strategy as @vtjnash's work with BoundsErrors. The performance sensitive methods would still get special cased error handling in base/repltuils.jl

@tkelman
Copy link
Contributor

tkelman commented Jul 12, 2017

fixed by #22751

@tkelman tkelman closed this Jul 12, 2017
@tkelman tkelman deleted the jcb/betterdomainerr branch July 12, 2017 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:error handling Handling of exceptions by Julia or the user
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants