Refactor Avi's improved Meteor.Error to make it possible to use for other Error
subclasses.