How do you access to the error string payload in addition to the error type?
d = Dict()
e = try
a = parse(Float64, d["a"])
For convenience in REPL,
e is set to the error, which is
I can get the error type of
typeof(e), but I don’t know how to get the string payload of
"a" from this error.
key: String "a"
Note that different exception types can have different
struct field names, however.
Also recently found:
This file is another good reference on displaying errors.