If I write a script that does nothing else than throwing an error like this:
throw(ErrorException("a useful message"))
I get the following error when I execute the script.
$ julia throwError.jl
ERROR: LoadError: a useful message
Stacktrace:
[1] top-level scope at /path/throwError.jl:1
[2] include(::Function, ::Module, ::String) at ./Base.jl:380
[3] include(::Module, ::String) at ./Base.jl:368
[4] exec_options(::Base.JLOptions) at ./client.jl:296
[5] _start() at ./client.jl:506
in expression starting at /path/throwError.jl:1
I'm wondering why there is a LoadError:
in my error message.
I get the same with other error types. For example:
throw(DivideError())
$ julia throwError.jl
ERROR: LoadError: DivideError: integer division error
stacktrace:
...same as above...