Skip to content

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 error handling Handling of exceptions by Julia or the user label Jan 9, 2015
@ivarne
Copy link
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

error handling Handling of exceptions by Julia or the user

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants