Revert "Fixed syntax errors with throwing exceptions."

This reverts commit a511870aad3f8c08126ba97b46128f67c35a91d7.