function errorHandlingConfig(config) {
  if (isObject(config)) {
    if (isDefined(config.objectMaxDepth)) {
      minErrConfig.objectMaxDepth = isValidObjectMaxDepth(config.objectMaxDepth) ? config.objectMaxDepth : NaN;
    }
    if (isDefined(config.urlErrorParamsEnabled) && isBoolean(config.urlErrorParamsEnabled)) {
      minErrConfig.urlErrorParamsEnabled = config.urlErrorParamsEnabled;
    }
  } else {
    return minErrConfig;
  }
}
@ngdoc method
@name $animate#enter
@kind function
@description Inserts the element into the DOM either after the `after` element (if provided) or
  as the first child within the `parent` element and then triggers an animation.
  A promise is returned that will be resolved during the next digest once the animation
  has completed.

@param {DOMElement} element the element which will be inserted into the DOM
@param {DOMElement} parent the parent element which will append the element as
  a child (so long as the after element is not present)
@param {DOMElement=} after the sibling element after which the element will be appended
@param {object=} options an optional collection of options/styles that will be applied to the element.
  The object can have the following properties:

  - **addClass** - `{string}` - space-separated CSS classes to add to element
  - **from** - `{Object}` - CSS properties & values at the beginning of animation. Must have matching `to`
  - **removeClass** - `{string}` - space-separated CSS classes to remove from element
  - **to** - `{Object}` - CSS properties & values at end of animation. Must have matching `from`

@return {Runner} the animation runner