Throw works on objects... not class! :)

Also fixed wrong var name.