| 39 | } |
| 40 | |
| 41 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected