Throw standard exception or extended exception

Preparing to throw exceptions.