* @ngdoc function * @name angular.errorHandlingConfig * @module ng * @kind function * * @description * Configure several aspects of error handling in AngularJS if used as a setter or return the * current configuration if used as a getter. The following options are supported: * * - **objectM
(config)
| 37 | * Default: 5 |
| 38 | */ |
| 39 | function errorHandlingConfig(config) { |
| 40 | if (isObject(config)) { |
| 41 | if (isDefined(config.objectMaxDepth)) { |
| 42 | minErrConfig.objectMaxDepth = isValidObjectMaxDepth(config.objectMaxDepth) ? config.objectMaxDepth : NaN; |
| 43 | } |
| 44 | } else { |
| 45 | return minErrConfig; |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * @private |
nothing calls this directly
no test coverage detected