blob: e1bcd423f32198e1f68fdd94467fe4247f340fd9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import {Injectable} from '@angular/core';
import {Subject} from 'rxjs/Subject';
import {ErrorMsgObject} from "./error-msg.model";
@Injectable()
export class ErrorMsgService {
triggerShowError: Subject<ErrorMsgObject> = new Subject<ErrorMsgObject>();
triggerClearError: Subject<boolean> = new Subject<boolean>();
errorMsgObject: ErrorMsgObject = null;
getScalingErrorObject(): ErrorMsgObject {
return new ErrorMsgObject("Error : Too many members",
"One or more VNF groups, marked below, exceeds the maximum allowed number of members to associate",
"Please make sure the total amount of VNF instances is less than that amount.");
}
getRetryErrorObject(numberOfFailed: number): ErrorMsgObject {
return new ErrorMsgObject("ERROR!",
`Attention: You are currently viewing instances from the MSO. \n ${numberOfFailed} of the instances failed, please try again.`,
null);
}
}
|