added helper util to convert throwables into error info tags