* @ngdoc method * @name $q#reject * @kind function * * @description * Creates a promise that is resolved as rejected with the specified `reason`. This api should be * used to forward rejection in a chain of promises. If you are dealing with the last promise in * a promise chain,
(reason)
| 16829 | * @returns {Promise} Returns a promise that was already resolved as rejected with the `reason`. |
| 16830 | */ |
| 16831 | function reject(reason) { |
| 16832 | var result = new Deferred(); |
| 16833 | result.reject(reason); |
| 16834 | return result.promise; |
| 16835 | } |
| 16836 | |
| 16837 | function handleCallback(value, resolver, callback) { |
| 16838 | var callbackOutput = null; |
no outgoing calls
no test coverage detected