code: function customError(name, error) {
    return {
      error: error,
      message: error.message,
      name: name
    };
  }
docs: customError
  return an object forming a custom error message
  @param  {String} name
  @param  {Object} error
  @return {Object}