Fixed typo `tf` to `sprintf`.
Fixed typo `Exception` to `\Exception`