MCPcopy Index your code
hub / github.com/devcontainers/cli / ContainerError

Class ContainerError

src/spec-common/errors.ts:41–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41export class ContainerError extends Error implements ContainerErrorInfo {
42 description!: string;
43 originalError?: any;
44 manageContainer = false;
45 params?: ResolverParameters;
46 containerId?: string; // TODO
47 dockerParams?: any; // TODO
48 volumeName?: string;
49 repositoryPath?: string;
50 folderPath?: string;
51 containerProperties?: ContainerProperties;
52 config?: CommonDevContainerConfig;
53 actions: ContainerErrorAction[] = [];
54 data: ContainerErrorData = {};
55
56 constructor(info: ContainerErrorInfo) {
57 super(info.originalError && info.originalError.message || info.description);
58 Object.assign(this, info);
59 if (this.originalError?.stack) {
60 this.stack = this.originalError.stack;
61 }
62 }
63}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected