
8 Jun
2011
8 Jun
'11
12:52 p.m.
On Wed, Jun 8, 2011 at 12:45, Christopher Howard
Reason I ask: Lets say I want to create my own error type which is a member of Error, but has multiple record fields. How would I implement noMsg and strMsg?
However you want. The thing to keep in mind is that those are the required constructors, but need not be the *only* constructors; your code would use other constructors that provide more information, while noMsg and strMsg are used by generic code that wouldn't know what to do with your additional fields anyway. So pick saneish defaults.