Just a thought.. Maybe you'd save a bit of time on startup work if you instead lazy-init'd the errors? E.g., make the folllowing callable:

```
  new Error('InvalidEntrypoint, 'no useful location information found') 
```

I suppose the current implementation might be a bit more cleaner though.