Some helper methods for throwing errors.
Add line and file info if available and appropriate.
Throw a dev error.
Wrap a call in such a way that we always throw the right exception and keep as much context as possible.
Throw an error, defaulting to a Puppet::Error.
[Validate]