@evan.network/ui-angular-core
Version:
The angular-core operates as an global and central library for the evan.network Angular 5 frontend development. Using this project you will be able to to the following things:
27 lines (26 loc) • 832 B
TypeScript
import { // '@angular/router';
ErrorHandler } from 'angular-libs';
import { SingletonService } from '../singleton-service';
/**************************************************************************************************/
/**
* Global angular exception handler.
*
* @class Injectable EvanExceptionHandler
*/
export declare class EvanExceptionHandler implements ErrorHandler {
private singleton;
/**
* predefined error cases
*/
errorCases: Array<any>;
/**
* create singleton instance and set initial values
*/
constructor(singleton: SingletonService);
/**
* Handles an Exception, logs it to the console and redirects to the evan error page
*
* @param {Error} error Incoming exception that should be parsed
*/
handleError(error: Error): void;
}