Exception handling best practices

Have you all seen this solution? http://takidashi.com/smooth-error-handling-for-meteor-methods.html

// in /lib needed on both client and server

var throwError = function(error, reason, details) {
  error = new Meteor.Error(error, reason, details);
  if (Meteor.isClient) {
    return error;
  } else if (Meteor.isServer) {
    throw error;
  }
};

// Some Method

Meteor.methods({
  createPost: function(text) {
    if (!this.userId) {
      return throwError(403, 'Must be logged in');
    }
  }
});

Template.new_post.events({
  'click input#create_post': function(event, template) {
    var text;
    text = ($(event.target)).prev('input').val();
    return Meteor.call('createPost', text, function(error, result) {
      if (error) {
        return new Message(error.reason); //handle the message on the client
      }
    });
  }
});