##// END OF EJS Templates
Added childContainer service to container services, ServiceContaier is destroyable, fixed browser Uuid version
Added childContainer service to container services, ServiceContaier is destroyable, fixed browser Uuid version

File last commit:

r114:475b8ce3e850 ioc ts support
r146:f3f5c56d3b3e v1.4.0-rc5 default
Show More
ActivationError.ts
39 lines | 982 B | video/mp2t | TypeScriptLexer
/ src / main / ts / di / ActivationError.ts
cin
working on IoC configuration
r114 export interface ActivationItem {
name: string;
service: string;
}
cin
changed the project structure
r49
export class ActivationError {
cin
working on IoC configuration
r114 activationStack: ActivationItem[];
cin
changed the project structure
r49
service: string;
innerException: any;
message: string;
cin
working on IoC configuration
r114 constructor(service: string, activationStack: ActivationItem[], innerException: any) {
cin
changed the project structure
r49 this.message = "Failed to activate the service";
this.activationStack = activationStack;
this.service = service;
this.innerException = innerException;
}
toString() {
const parts = [this.message];
if (this.service)
parts.push("when activating: " + this.service.toString());
if (this.innerException)
parts.push("caused by: " + this.innerException.toString());
if (this.activationStack) {
parts.push("at");
this.activationStack
.forEach(x => parts.push(` ${x.name} ${x.service}`));
}
return parts.join("\n");
}
}