Wondering how much effort I should go to forcing useful debugging information when creating exception messages, or should I just trust the user to supply the right info, or
I won't detract from the advise regarding Krzysztof's blog, but here is a dead-easy way to create custom exceptions.
Example:
The code behind that (which I borrowed somewhere, apologies to whomever that was)
message}' in {$this->file}({$this->line})\n" . "{$this->getTraceAsString()}"; } }