src/app/home-page/error-page/error-page.component.ts
An error page to display various client-side errors, and errors received from the server.
| selector | app-error-page |
| styleUrls | error-page.component.css |
| templateUrl | ./error-page.component.html |
Properties |
|
constructor(katanaService: KatanaService)
|
||||||||
|
Constructor
Parameters :
|
| Public katanaService |
katanaService:
|
Type : KatanaService
|
|
Collects errors in Katana and allows
them to be read and displayed to the user. Used in
error-page.component.html (i.e. DO NOT DELETE)
**********************************************************
|
import { Component } from '@angular/core';
import { KatanaService } from '../../katana.service'; // Being used in error-page.component.html (i.e. DO NOT DELETE)
/** An error page to display various client-side errors, and errors received from the server. */
@Component({
selector: 'app-error-page',
templateUrl: './error-page.component.html',
styleUrls: ['./error-page.component.css']
})
export class ErrorPageComponent {
/** **********************************************************
* Constructor
* @param katanaService Collects errors in Katana and allows
* them to be read and displayed to the user. Used in
* error-page.component.html (i.e. DO NOT DELETE)
************************************************************/
constructor(public katanaService: KatanaService) { }
}
<div id="errorPage">
<h1>{{katanaService.error ? katanaService.error.message : 'There isn\'t any error information available to display'}}</h1>
<h1>Status: {{katanaService.error ? katanaService.error.status : '---'}}</h1>
<p>If this error persists, please contact a Katana admin.</p>
</div>