Fixed an error log typo.
Added WebException class.