title: No provider exception when trying to extend the angular 2 exceptionHandler class
body: <p>I made a class that extends the ExceptionHandler in Angular 2. I bootstrap this: </p>
  
  <pre><code>bootstrap(App, [
    APP_ROUTER_PROVIDERS,
    HTTP_PROVIDERS,
    provide(ExceptionHandler, { useClass: CustomExceptionHandler }),
  </code></pre>
  
  <p>This works well, the problems arise when I try to inject my API service. I tried this: </p>
  
  <pre><code>@Injectable()
  export class CustomExceptionHandler extends ExceptionHandler {
  
    constructor( _exceptionApiService: ExceptionApiService) {
      super(new ArrayLogger(_exceptionApiService), true);
    }
  
    call(error, stackTrace = null, reason = null) {
      super.call(error, stackTrace, reason);
    }
  }
  </code></pre>
  
  <p>Then my ArrayLogger class: </p>
  
  <pre><code>export class ArrayLogger {
  
    private _exceptionApiService: ExceptionApiService;
  
    constructor(_exceptionApiService: ExceptionApiService) {
      this._exceptionApiService = _exceptionApiService;
    }
  
    res = [];
    log(s: any): void { this.res.push(s); }
    logError(s: any): void { this.res.push(s); }
    logGroup(s: any): void { this.res.push(s); }
    logGroupEnd() {
  
      let error: Error;
  
      let message = this.res[0].replace('EXCEPTION: ', '');
      let stack = [];
      let index = this.findStackTrace(this.res);
  
      if (index === -1) {
        stack.push('Could not find stackTrace!');
      } else {
        this.res[index].split('\n').map(line =&gt; stack.push(line.trim()));
      }
  
      error = new Error({
        url: window.location.href,
        error: message,
        stack: stack,
        browser: this.getBrowser(navigator.userAgent),
        userAgent: navigator.userAgent,
        platform: navigator.platform,
        datetime: ''
      });
  
      this._exceptionApiService.post(error);
  
    }
  
    (...)
  
  }
  </code></pre>
  
  <p>This gives me the error: </p>
  
  <pre><code>zone.min.js:1 Unhandled Promise rejection: (SystemJS) EXCEPTION: Error during instantiation of ApplicationRef_! (ApplicationRef -&gt; ApplicationRef_).
      ORIGINAL EXCEPTION: No provider for ExceptionApiService! (ExceptionHandler -&gt; ExceptionApiService)
      ORIGINAL STACKTRACE:
      Error: DI Exception
          at NoProviderError.BaseException [as constructor] (http://localhost:4200/vendor/@angular/core/src/facade/exceptions.js:27:23)
          at NoProviderError.AbstractProviderError [as constructor] 
  </code></pre>
  
  <p>How can I inject my exceptionAPIService properly? </p>