Replace exception getMessage with getStackTrace