a zip code crypto-currency system good for red ONLY

ionic-error-handler.d.ts 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import { ErrorHandler } from '@angular/core';
  2. /**
  3. * @name IonicErrorHandler
  4. * @description
  5. * The `IonicErrorHandler` intercepts the default `Console` error handling
  6. * and displays runtime errors as an overlay when using Ionic's Dev Build Server.
  7. *
  8. *
  9. * ### IonicErrorHandler Example
  10. *
  11. * ```typescript
  12. * import { ErrorHandler, NgModule } from '@angular/core';
  13. * import { IonicErrorHandler } from 'ionic-angular';
  14. *
  15. * @NgModule({
  16. * providers: [{ provide: ErrorHandler, useClass: IonicErrorHandler }]
  17. * })
  18. * class AppModule { }
  19. * ```
  20. *
  21. *
  22. * ### Custom Error Handlers
  23. *
  24. * Custom error handlers can be built to replace the default, or extend Ionic's
  25. * error handler.
  26. *
  27. * ```typescript
  28. * class MyErrorHandler implements ErrorHandler {
  29. * handleError(err: any): void {
  30. * // do something with the error
  31. * }
  32. * }
  33. *
  34. * @NgModule({
  35. * providers: [{ provide: ErrorHandler, useClass: MyErrorHandler }]
  36. * })
  37. * class AppModule { }
  38. * ```
  39. *
  40. * More information about Angular's [`ErrorHandler`](https://angular.io/docs/ts/latest/api/core/index/ErrorHandler-class.html).
  41. */
  42. export declare class IonicErrorHandler extends ErrorHandler {
  43. constructor();
  44. /**
  45. * @internal
  46. */
  47. handleError(err: any): void;
  48. }