Print errors untruncated and full precision

For a error thrown in some source location outside my control, is it possible to print the error object with full precision, untruncated, so that I can save the values from the REPL?

MWE:

julia> throw(DomainError(rand(100), "this is the problematic value"))
ERROR: DomainError with [0.885351, 0.310459, 0.494661, 0.470009, 0.52826, 0.0770669, 0.557097, 0.912992, 0.583488, 0.892067  …  0.873031, 0.357821, 0.0771776, 0.57399, 0.435096, 0.443316, 0.191378, 0.301983, 0.0455148, 0.515448]:
this is the problematic value

Can you catch the error?

julia> try
           throw(DomainError(rand(100), "this is the problematic value"))
       catch e
           e.val
       end
100-element Vector{Float64}:
 0.5348390850487531
 0.9639789979150846
 0.9928589887556779
 ⋮
2 Likes