title: How to get an array of Thread::Backtrace::Location related to an exception
body: <p>Is there a way to get an array of <code>Thread::Backtrace::Location</code> instances attached to an <code>Exception</code> instance? If so, how? There are <code>Kernel#caller_locations</code> and <code>Thread#backtrace_locations</code>, but those are related to the current context or a thread, and not to an arbitrary exception instance. I don't know if those are to be used.</p>