* @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)
| 44 | * Default: true. When used without argument, it returns the current value. |
| 45 | */ |
| 46 | function errorHandlingConfig(config) { |
| 47 | if (isObject(config)) { |
| 48 | if (isDefined(config.objectMaxDepth)) { |
| 49 | minErrConfig.objectMaxDepth = isValidObjectMaxDepth(config.objectMaxDepth) ? config.objectMaxDepth : NaN; |
| 50 | } |
| 51 | if (isDefined(config.urlErrorParamsEnabled) && isBoolean(config.urlErrorParamsEnabled)) { |
| 52 | minErrConfig.urlErrorParamsEnabled = config.urlErrorParamsEnabled; |
| 53 | } |
| 54 | } else { |
| 55 | return minErrConfig; |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | /** |
| 60 | * @private |
nothing calls this directly
no test coverage detected