Better to construct as in http://adv-r.had.co.nz/Exceptions-Debugging.html#custom-signal-classes