##// END OF EJS Templates
added provided and configure methods to the fluent container configuration, added applyConfig method to the container
added provided and configure methods to the fluent container configuration, added applyConfig method to the container

File last commit:

r114:475b8ce3e850 ioc ts support
r142:be7edf08a115 v1.4.0-rc3 default
Show More
ActivationError.ts
39 lines | 982 B | video/mp2t | TypeScriptLexer
/ src / main / ts / di / ActivationError.ts
export interface ActivationItem {
name: string;
service: string;
}
export class ActivationError {
activationStack: ActivationItem[];
service: string;
innerException: any;
message: string;
constructor(service: string, activationStack: ActivationItem[], innerException: any) {
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");
}
}