Throw execption correctly.

`Exception` is undefined.