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

InexactError needs more explanation #19929

Closed
dpsanders opened this issue Jan 8, 2017 · 2 comments
Closed

InexactError needs more explanation #19929

dpsanders opened this issue Jan 8, 2017 · 2 comments
Labels
docs This change adds or pertains to documentation error handling Handling of exceptions by Julia or the user

Comments

@dpsanders
Copy link
Contributor

InexactErrors have often been a source of mystery, e.g.

julia> type MyTest{T}
           value::T
       end

julia>

julia> MyTest{Int}(3.1)
------ InexactError -------------------- Stacktrace (most recent call last)

 [1] — MyTest{Int64}(::Float64) at REPL[1]:2

InexactError()

Would it be possible to say something more helpful, like

InexactError: Trying to convert 3.1 to Int64
@timholy
Copy link
Member

timholy commented Jan 8, 2017

Someone just needs to implement #18521. Volunteering? 😉

@tkelman tkelman added the error handling Handling of exceptions by Julia or the user label Jan 8, 2017
@kshyatt kshyatt added the docs This change adds or pertains to documentation label Jan 8, 2017
@tkelman
Copy link
Contributor

tkelman commented Feb 7, 2017

Closing as dup

@tkelman tkelman closed this as completed Feb 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This change adds or pertains to documentation error handling Handling of exceptions by Julia or the user
Projects
None yet
Development

No branches or pull requests

4 participants