##// END OF EJS Templates
tests, refactoring, fixes
tests, refactoring, fixes

File last commit:

r39:ed82314aa5c8 di-typescript
r40:6559c5b81a19 di-typescript
Show More
ActivationError.ts
36 lines | 1005 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
.forEach(x => parts.push(` ${x.name} ${x.service ? x.service.toString() : ""}`));
cin
ported IoC container to typescript...
r34 }
return parts.join("\n");
}
cin
ts code cleanup, linting
r39 }