Parses raised exceptions in ruby