Replaced standard call to 'throw' with an Error instance so that a proper stack trace can be inspected when this exception occurs
Merge pull request #26 from DiegoMax/master

Replaced standard call to 'throw' with an Error instance