nl_tokens: @ngdoc @name ng . $q#reject @methodOf ng . $q @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 you don t need to worry about it .
pl_tokens: function ( reason ) { return { then : function ( callback , errback ) { var result = defer ( ) ; nextTick ( function ( ) { try { <mask> . resolve ( ( isFunction ( errback ) ? errback : defaultErrback ) ( reason ) ) ; } catch ( e ) { result . reject ( e ) ; exceptionHandler ( e ) ; } } ) ; return result . promise ; } } ; }