Secondary constructor that allows creating an instance of the class using a Throwable.
The Throwable from which the error message, stack trace, and cause will be retrieved.