##// END OF EJS Templates
tests
tests

File last commit:

r41:eae7e609c38a di-typescript
r41:eae7e609c38a di-typescript
Show More
ActivationError.ts
36 lines | 977 B | video/mp2t | TypeScriptLexer
/ src / ts / di / ActivationError.ts
cin
ported IoC container to typescript...
r34 import { ActivationContextInfo } from "./ActivationContext";
export class ActivationError {
cin
ts code cleanup, linting
r39 activationStack: ActivationContextInfo[];
cin
ported IoC container to typescript...
r34
cin
ts code cleanup, linting
r39 service: string;
cin
ported IoC container to typescript...
r34
cin
ts code cleanup, linting
r39 innerException: any;
cin
ported IoC container to typescript...
r34
cin
ts code cleanup, linting
r39 message: string;
cin
ported IoC container to typescript...
r34
constructor(service: string, activationStack: ActivationContextInfo[], innerException) {
this.message = "Failed to activate the service";
this.activationStack = activationStack;
this.service = service;
this.innerException = innerException;
}
toString() {
cin
ts code cleanup, linting
r39 const parts = [this.message];
cin
ported IoC container to typescript...
r34 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");
cin
ts code cleanup, linting
r39 this.activationStack
cin
tests
r41 .forEach(x => parts.push(` ${x.name} ${x.service}`));
cin
ts code cleanup, linting
r39
cin
ported IoC container to typescript...
r34 }
return parts.join("\n");
}
cin
ts code cleanup, linting
r39 }