This blog is part of our Ruby 2.5 series.
Before Ruby 2.5,
if we want to log a caught exception,
we would need to format it ourselves.
It was proposed
that there should be a simple method
to print the caught exception
using the same format
that ruby uses while printing
an uncaught exception.
Some of the proposed method names were
Exception#full_message method name.
In Ruby 2.5, we can re-write above example
Ruby 2.5 prints exception backtrace
in reverse order
if STDERR is unchanged and is a TTY
in our previous blog post.