Changed OldException to Exception and renamed an "error" to "errorMsg"
(thanks to Mathias)