code: private void obtainErrorColor(@NonNull final TypedArray typedArray) {
          setErrorColor(typedArray.getColor(R.styleable.AbstractValidateableView_errorColor,
                  ContextCompat.getColor(getContext(), R.color.default_error_color)));
      }
docs: Obtains the color, which is used to indicate validation errors, from a specific typed array.
  
  @param typedArray
  The typed array, the error color should be obtained from, as an instance of the class
  {@link TypedArray}. The typed array may not be null