errorMessage(type) {
    return (this.component.errors && this.component.errors[type]) ? this.component.errors[type] :  type;
  }
Get the error message provided a certain type of error.
@param {string} type - The type of error to fetch the message for.
@returns {string} - The error message configured for this component.