@fungi.computer/mycelium 0.0.0-stage → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +303 -2
- package/THIRD_PARTY_NOTICES +2 -0
- package/dist/access.d.ts +129 -0
- package/dist/access.js +166 -0
- package/dist/capability-source.d.ts +44 -0
- package/dist/capability-source.js +1 -0
- package/dist/compiler.d.ts +28 -0
- package/dist/compiler.js +221 -0
- package/dist/define.d.ts +8 -0
- package/dist/define.js +7 -0
- package/dist/effect.d.ts +89 -0
- package/dist/effect.js +42 -0
- package/dist/errors.d.ts +48 -0
- package/dist/errors.js +62 -0
- package/dist/execute-tool.d.ts +22 -0
- package/dist/execute-tool.js +163 -0
- package/dist/image-collector.d.ts +47 -0
- package/dist/image-collector.js +39 -0
- package/dist/index.d.ts +149 -0
- package/dist/index.js +22 -0
- package/dist/internal/build-identity.d.ts +1 -0
- package/dist/internal/build-identity.js +15 -0
- package/dist/internal/build-identity.node.d.ts +1 -0
- package/dist/internal/build-identity.node.js +42 -0
- package/dist/internal/execution-lifecycle.d.ts +44 -0
- package/dist/internal/execution-lifecycle.js +328 -0
- package/dist/internal/mcp-principal.d.ts +14 -0
- package/dist/internal/mcp-principal.js +17 -0
- package/dist/mcp-catalog.d.ts +23 -0
- package/dist/mcp-catalog.js +110 -0
- package/dist/mcp.d.ts +92 -0
- package/dist/mcp.js +250 -0
- package/dist/operation-schema.d.ts +47 -0
- package/dist/operation-schema.js +50 -0
- package/dist/promise-facade.d.ts +3 -0
- package/dist/promise-facade.js +82 -0
- package/dist/registration.d.ts +74 -0
- package/dist/registration.js +157 -0
- package/dist/remote.d.ts +33 -0
- package/dist/remote.js +126 -0
- package/dist/runtime.d.ts +51 -0
- package/dist/runtime.js +159 -0
- package/dist/sandbox-boundary.d.ts +44 -0
- package/dist/sandbox-boundary.js +325 -0
- package/dist/sandbox-failure-event.d.ts +15 -0
- package/dist/sandbox-failure-event.js +34 -0
- package/dist/sandbox-failure.d.ts +128 -0
- package/dist/sandbox-failure.js +161 -0
- package/dist/sandbox-guest.d.ts +34 -0
- package/dist/sandbox-guest.js +131 -0
- package/dist/sandbox-wire.d.ts +76 -0
- package/dist/sandbox-wire.js +190 -0
- package/dist/sandbox.d.ts +41 -0
- package/dist/sandbox.js +1 -0
- package/dist/semaphore-transition.d.ts +7 -0
- package/dist/semaphore-transition.js +9 -0
- package/dist/source-runtime.d.ts +28 -0
- package/dist/source-runtime.js +162 -0
- package/dist/testing.d.ts +11 -0
- package/dist/testing.js +19 -0
- package/dist/workers/index.d.ts +9 -0
- package/dist/workers/index.js +90 -0
- package/docs/api/README.md +25 -0
- package/docs/api/define.md +20 -0
- package/docs/api/effect.md +245 -0
- package/docs/api/index.md +1081 -0
- package/docs/api/mcp.md +239 -0
- package/docs/api/remote.md +108 -0
- package/docs/api/sandbox-boundary.md +325 -0
- package/docs/api/sandbox-failure.md +1133 -0
- package/docs/api/sandbox-guest.md +191 -0
- package/docs/api/sandbox-wire.md +117 -0
- package/docs/api/sandbox.md +81 -0
- package/docs/api/semaphore-transition.md +40 -0
- package/docs/api/testing.md +72 -0
- package/docs/api/workers.md +55 -0
- package/package.json +132 -3
|
@@ -0,0 +1,1133 @@
|
|
|
1
|
+
<!-- Generated by Botanical API docs (TypeDoc + typedoc-plugin-markdown). Do not edit. -->
|
|
2
|
+
|
|
3
|
+
[**@fungi.computer/mycelium**](README.md)
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
[@fungi.computer/mycelium](README.md) / sandbox-failure
|
|
8
|
+
|
|
9
|
+
# sandbox-failure
|
|
10
|
+
|
|
11
|
+
## Classes
|
|
12
|
+
|
|
13
|
+
### SourceInvalid
|
|
14
|
+
|
|
15
|
+
A location in the submitted program, never in the host's source.
|
|
16
|
+
|
|
17
|
+
#### Extends
|
|
18
|
+
|
|
19
|
+
- `YieldableError`\<`this`\> & `object` &
|
|
20
|
+
`Readonly`\<[`SandboxFailureReference`](#sandboxfailurereference) & `object`\>
|
|
21
|
+
|
|
22
|
+
#### Constructors
|
|
23
|
+
|
|
24
|
+
##### Constructor
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
new SourceInvalid(args): SourceInvalid;
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
###### Parameters
|
|
31
|
+
|
|
32
|
+
| Parameter | Type |
|
|
33
|
+
| -------------- | ---------------------------------------------------------------------------------- |
|
|
34
|
+
| `args` | \{ `ref?`: `string`; `line`: `number`; `column`: `number`; `excerpt`: `string`; \} |
|
|
35
|
+
| `args.ref?` | `string` |
|
|
36
|
+
| `args.line` | `number` |
|
|
37
|
+
| `args.column` | `number` |
|
|
38
|
+
| `args.excerpt` | `string` |
|
|
39
|
+
|
|
40
|
+
###### Returns
|
|
41
|
+
|
|
42
|
+
[`SourceInvalid`](#sourceinvalid)
|
|
43
|
+
|
|
44
|
+
###### Inherited from
|
|
45
|
+
|
|
46
|
+
```ts
|
|
47
|
+
Data.TaggedError("SourceInvalid")<
|
|
48
|
+
SandboxFailureReference & {
|
|
49
|
+
readonly line: number;
|
|
50
|
+
readonly column: number;
|
|
51
|
+
readonly excerpt: string;
|
|
52
|
+
}
|
|
53
|
+
>.constructor
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
#### Properties
|
|
57
|
+
|
|
58
|
+
##### ref?
|
|
59
|
+
|
|
60
|
+
```ts
|
|
61
|
+
readonly optional ref?: string;
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
###### Inherited from
|
|
65
|
+
|
|
66
|
+
```ts
|
|
67
|
+
Data.TaggedError("SourceInvalid").ref;
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
##### line
|
|
71
|
+
|
|
72
|
+
```ts
|
|
73
|
+
readonly line: number;
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
###### Inherited from
|
|
77
|
+
|
|
78
|
+
```ts
|
|
79
|
+
Data.TaggedError("SourceInvalid").line;
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
##### column
|
|
83
|
+
|
|
84
|
+
```ts
|
|
85
|
+
readonly column: number;
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
###### Inherited from
|
|
89
|
+
|
|
90
|
+
```ts
|
|
91
|
+
Data.TaggedError("SourceInvalid").column;
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
##### excerpt
|
|
95
|
+
|
|
96
|
+
```ts
|
|
97
|
+
readonly excerpt: string;
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
###### Inherited from
|
|
101
|
+
|
|
102
|
+
```ts
|
|
103
|
+
Data.TaggedError("SourceInvalid").excerpt;
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
### GuestThrew
|
|
109
|
+
|
|
110
|
+
Text captured inside the guest's own exception handler.
|
|
111
|
+
|
|
112
|
+
#### Extends
|
|
113
|
+
|
|
114
|
+
- `YieldableError`\<`this`\> & `object` &
|
|
115
|
+
`Readonly`\<[`SandboxFailureReference`](#sandboxfailurereference) & `object`\>
|
|
116
|
+
|
|
117
|
+
#### Constructors
|
|
118
|
+
|
|
119
|
+
##### Constructor
|
|
120
|
+
|
|
121
|
+
```ts
|
|
122
|
+
new GuestThrew(args): GuestThrew;
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
###### Parameters
|
|
126
|
+
|
|
127
|
+
| Parameter | Type | Description |
|
|
128
|
+
| ------------------------ | --------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
|
|
129
|
+
| `args` | \{ `ref?`: `string`; `name`: `string`; `message`: `string`; `missingVariable?`: `string`; `transportMessage?`: `string`; \} | - |
|
|
130
|
+
| `args.ref?` | `string` | - |
|
|
131
|
+
| `args.name` | `string` | - |
|
|
132
|
+
| `args.message` | `string` | - |
|
|
133
|
+
| `args.missingVariable?` | `string` | - |
|
|
134
|
+
| `args.transportMessage?` | `string` | Safe provider envelope carried in the guest exception's cause, never model text. |
|
|
135
|
+
|
|
136
|
+
###### Returns
|
|
137
|
+
|
|
138
|
+
[`GuestThrew`](#guestthrew)
|
|
139
|
+
|
|
140
|
+
###### Inherited from
|
|
141
|
+
|
|
142
|
+
```ts
|
|
143
|
+
Data.TaggedError("GuestThrew")<
|
|
144
|
+
SandboxFailureReference & {
|
|
145
|
+
readonly name: string;
|
|
146
|
+
readonly message: string;
|
|
147
|
+
readonly missingVariable?: string | undefined;
|
|
148
|
+
/ Safe provider envelope carried in the guest exception's cause, never model text. /
|
|
149
|
+
readonly transportMessage?: string | undefined;
|
|
150
|
+
}
|
|
151
|
+
>.constructor
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
#### Properties
|
|
155
|
+
|
|
156
|
+
##### ref?
|
|
157
|
+
|
|
158
|
+
```ts
|
|
159
|
+
readonly optional ref?: string;
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
###### Inherited from
|
|
163
|
+
|
|
164
|
+
```ts
|
|
165
|
+
Data.TaggedError("GuestThrew").ref;
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
##### missingVariable?
|
|
169
|
+
|
|
170
|
+
```ts
|
|
171
|
+
readonly optional missingVariable?: string;
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
###### Inherited from
|
|
175
|
+
|
|
176
|
+
```ts
|
|
177
|
+
Data.TaggedError("GuestThrew").missingVariable;
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
##### transportMessage?
|
|
181
|
+
|
|
182
|
+
```ts
|
|
183
|
+
readonly optional transportMessage?: string;
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
Safe provider envelope carried in the guest exception's cause, never model text.
|
|
187
|
+
|
|
188
|
+
###### Inherited from
|
|
189
|
+
|
|
190
|
+
```ts
|
|
191
|
+
Data.TaggedError("GuestThrew").transportMessage;
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
##### name
|
|
195
|
+
|
|
196
|
+
```ts
|
|
197
|
+
name: string;
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
###### Inherited from
|
|
201
|
+
|
|
202
|
+
```ts
|
|
203
|
+
Data.TaggedError("GuestThrew").name;
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
##### message
|
|
207
|
+
|
|
208
|
+
```ts
|
|
209
|
+
message: string;
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
###### Inherited from
|
|
213
|
+
|
|
214
|
+
```ts
|
|
215
|
+
Data.TaggedError("GuestThrew").message;
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
### DeadlineExceeded
|
|
221
|
+
|
|
222
|
+
The invocation owner decided its execution budget was spent.
|
|
223
|
+
|
|
224
|
+
#### Extends
|
|
225
|
+
|
|
226
|
+
- `YieldableError`\<`this`\> & `object` &
|
|
227
|
+
`Readonly`\<[`SandboxFailureReference`](#sandboxfailurereference) & `object`\>
|
|
228
|
+
|
|
229
|
+
#### Constructors
|
|
230
|
+
|
|
231
|
+
##### Constructor
|
|
232
|
+
|
|
233
|
+
```ts
|
|
234
|
+
new DeadlineExceeded(args): DeadlineExceeded;
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
###### Parameters
|
|
238
|
+
|
|
239
|
+
| Parameter | Type |
|
|
240
|
+
| -------------------- | ----------------------------------------------------------------------------------------------- |
|
|
241
|
+
| `args` | \{ `ref?`: `string`; `limitMs`: `number`; `elapsedMs`: `number`; `acknowledged?`: `boolean`; \} |
|
|
242
|
+
| `args.ref?` | `string` |
|
|
243
|
+
| `args.limitMs` | `number` |
|
|
244
|
+
| `args.elapsedMs` | `number` |
|
|
245
|
+
| `args.acknowledged?` | `boolean` |
|
|
246
|
+
|
|
247
|
+
###### Returns
|
|
248
|
+
|
|
249
|
+
[`DeadlineExceeded`](#deadlineexceeded)
|
|
250
|
+
|
|
251
|
+
###### Inherited from
|
|
252
|
+
|
|
253
|
+
```ts
|
|
254
|
+
Data.TaggedError("DeadlineExceeded")<
|
|
255
|
+
SandboxFailureReference & {
|
|
256
|
+
readonly limitMs: number;
|
|
257
|
+
readonly elapsedMs: number;
|
|
258
|
+
readonly acknowledged?: boolean | undefined;
|
|
259
|
+
}
|
|
260
|
+
>.constructor
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
#### Properties
|
|
264
|
+
|
|
265
|
+
##### ref?
|
|
266
|
+
|
|
267
|
+
```ts
|
|
268
|
+
readonly optional ref?: string;
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
###### Inherited from
|
|
272
|
+
|
|
273
|
+
```ts
|
|
274
|
+
Data.TaggedError("DeadlineExceeded").ref;
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
##### limitMs
|
|
278
|
+
|
|
279
|
+
```ts
|
|
280
|
+
readonly limitMs: number;
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
###### Inherited from
|
|
284
|
+
|
|
285
|
+
```ts
|
|
286
|
+
Data.TaggedError("DeadlineExceeded").limitMs;
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
##### elapsedMs
|
|
290
|
+
|
|
291
|
+
```ts
|
|
292
|
+
readonly elapsedMs: number;
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
###### Inherited from
|
|
296
|
+
|
|
297
|
+
```ts
|
|
298
|
+
Data.TaggedError("DeadlineExceeded").elapsedMs;
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
##### acknowledged?
|
|
302
|
+
|
|
303
|
+
```ts
|
|
304
|
+
readonly optional acknowledged?: boolean;
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
###### Inherited from
|
|
308
|
+
|
|
309
|
+
```ts
|
|
310
|
+
Data.TaggedError("DeadlineExceeded").acknowledged;
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
---
|
|
314
|
+
|
|
315
|
+
### Cancelled
|
|
316
|
+
|
|
317
|
+
The invocation owner accepted cancellation.
|
|
318
|
+
|
|
319
|
+
#### Extends
|
|
320
|
+
|
|
321
|
+
- `YieldableError`\<`this`\> & `object` &
|
|
322
|
+
`Readonly`\<[`SandboxFailureReference`](#sandboxfailurereference) & `object`\>
|
|
323
|
+
|
|
324
|
+
#### Constructors
|
|
325
|
+
|
|
326
|
+
##### Constructor
|
|
327
|
+
|
|
328
|
+
```ts
|
|
329
|
+
new Cancelled(args): Cancelled;
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
###### Parameters
|
|
333
|
+
|
|
334
|
+
| Parameter | Type |
|
|
335
|
+
| -------------------- | ------------------------------------------------------------------------------------- |
|
|
336
|
+
| `args` | \{ `ref?`: `string`; `by`: `"caller"` \| `"operator"`; `acknowledged?`: `boolean`; \} |
|
|
337
|
+
| `args.ref?` | `string` |
|
|
338
|
+
| `args.by` | `"caller"` \| `"operator"` |
|
|
339
|
+
| `args.acknowledged?` | `boolean` |
|
|
340
|
+
|
|
341
|
+
###### Returns
|
|
342
|
+
|
|
343
|
+
[`Cancelled`](#cancelled)
|
|
344
|
+
|
|
345
|
+
###### Inherited from
|
|
346
|
+
|
|
347
|
+
```ts
|
|
348
|
+
Data.TaggedError("Cancelled")<
|
|
349
|
+
SandboxFailureReference & {
|
|
350
|
+
readonly by: "caller" | "operator";
|
|
351
|
+
readonly acknowledged?: boolean | undefined;
|
|
352
|
+
}
|
|
353
|
+
>.constructor
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
#### Properties
|
|
357
|
+
|
|
358
|
+
##### ref?
|
|
359
|
+
|
|
360
|
+
```ts
|
|
361
|
+
readonly optional ref?: string;
|
|
362
|
+
```
|
|
363
|
+
|
|
364
|
+
###### Inherited from
|
|
365
|
+
|
|
366
|
+
```ts
|
|
367
|
+
Data.TaggedError("Cancelled").ref;
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
##### by
|
|
371
|
+
|
|
372
|
+
```ts
|
|
373
|
+
readonly by: "caller" | "operator";
|
|
374
|
+
```
|
|
375
|
+
|
|
376
|
+
###### Inherited from
|
|
377
|
+
|
|
378
|
+
```ts
|
|
379
|
+
Data.TaggedError("Cancelled").by;
|
|
380
|
+
```
|
|
381
|
+
|
|
382
|
+
##### acknowledged?
|
|
383
|
+
|
|
384
|
+
```ts
|
|
385
|
+
readonly optional acknowledged?: boolean;
|
|
386
|
+
```
|
|
387
|
+
|
|
388
|
+
###### Inherited from
|
|
389
|
+
|
|
390
|
+
```ts
|
|
391
|
+
Data.TaggedError("Cancelled").acknowledged;
|
|
392
|
+
```
|
|
393
|
+
|
|
394
|
+
---
|
|
395
|
+
|
|
396
|
+
### DispatchLost
|
|
397
|
+
|
|
398
|
+
Dispatch started, but its transport did not deliver an answer.
|
|
399
|
+
|
|
400
|
+
#### Extends
|
|
401
|
+
|
|
402
|
+
- `YieldableError`\<`this`\> & `object` &
|
|
403
|
+
`Readonly`\<[`SandboxFailureReference`](#sandboxfailurereference) & `object`\>
|
|
404
|
+
|
|
405
|
+
#### Constructors
|
|
406
|
+
|
|
407
|
+
##### Constructor
|
|
408
|
+
|
|
409
|
+
```ts
|
|
410
|
+
new DispatchLost(args): DispatchLost;
|
|
411
|
+
```
|
|
412
|
+
|
|
413
|
+
###### Parameters
|
|
414
|
+
|
|
415
|
+
| Parameter | Type |
|
|
416
|
+
| ---------------- | ---------------------------------------------------------------------------------------------------------------- |
|
|
417
|
+
| `args` | \{ `ref?`: `string`; `elapsedMs`: `number`; `transport`: `string`; `errno?`: `string`; `rawCause`: `unknown`; \} |
|
|
418
|
+
| `args.ref?` | `string` |
|
|
419
|
+
| `args.elapsedMs` | `number` |
|
|
420
|
+
| `args.transport` | `string` |
|
|
421
|
+
| `args.errno?` | `string` |
|
|
422
|
+
| `args.rawCause` | `unknown` |
|
|
423
|
+
|
|
424
|
+
###### Returns
|
|
425
|
+
|
|
426
|
+
[`DispatchLost`](#dispatchlost)
|
|
427
|
+
|
|
428
|
+
###### Inherited from
|
|
429
|
+
|
|
430
|
+
```ts
|
|
431
|
+
Data.TaggedError("DispatchLost")<
|
|
432
|
+
SandboxFailureReference & {
|
|
433
|
+
readonly elapsedMs: number;
|
|
434
|
+
readonly transport: string;
|
|
435
|
+
readonly errno?: string | undefined;
|
|
436
|
+
readonly rawCause: unknown;
|
|
437
|
+
}
|
|
438
|
+
>.constructor
|
|
439
|
+
```
|
|
440
|
+
|
|
441
|
+
#### Properties
|
|
442
|
+
|
|
443
|
+
##### ref?
|
|
444
|
+
|
|
445
|
+
```ts
|
|
446
|
+
readonly optional ref?: string;
|
|
447
|
+
```
|
|
448
|
+
|
|
449
|
+
###### Inherited from
|
|
450
|
+
|
|
451
|
+
```ts
|
|
452
|
+
Data.TaggedError("DispatchLost").ref;
|
|
453
|
+
```
|
|
454
|
+
|
|
455
|
+
##### elapsedMs
|
|
456
|
+
|
|
457
|
+
```ts
|
|
458
|
+
readonly elapsedMs: number;
|
|
459
|
+
```
|
|
460
|
+
|
|
461
|
+
###### Inherited from
|
|
462
|
+
|
|
463
|
+
```ts
|
|
464
|
+
Data.TaggedError("DispatchLost").elapsedMs;
|
|
465
|
+
```
|
|
466
|
+
|
|
467
|
+
##### transport
|
|
468
|
+
|
|
469
|
+
```ts
|
|
470
|
+
readonly transport: string;
|
|
471
|
+
```
|
|
472
|
+
|
|
473
|
+
###### Inherited from
|
|
474
|
+
|
|
475
|
+
```ts
|
|
476
|
+
Data.TaggedError("DispatchLost").transport;
|
|
477
|
+
```
|
|
478
|
+
|
|
479
|
+
##### errno?
|
|
480
|
+
|
|
481
|
+
```ts
|
|
482
|
+
readonly optional errno?: string;
|
|
483
|
+
```
|
|
484
|
+
|
|
485
|
+
###### Inherited from
|
|
486
|
+
|
|
487
|
+
```ts
|
|
488
|
+
Data.TaggedError("DispatchLost").errno;
|
|
489
|
+
```
|
|
490
|
+
|
|
491
|
+
##### rawCause
|
|
492
|
+
|
|
493
|
+
```ts
|
|
494
|
+
readonly rawCause: unknown;
|
|
495
|
+
```
|
|
496
|
+
|
|
497
|
+
###### Inherited from
|
|
498
|
+
|
|
499
|
+
```ts
|
|
500
|
+
Data.TaggedError("DispatchLost").rawCause;
|
|
501
|
+
```
|
|
502
|
+
|
|
503
|
+
---
|
|
504
|
+
|
|
505
|
+
### SandboxCrashed
|
|
506
|
+
|
|
507
|
+
The sandbox process could not start or stopped before answering.
|
|
508
|
+
|
|
509
|
+
#### Extends
|
|
510
|
+
|
|
511
|
+
- `YieldableError`\<`this`\> & `object` &
|
|
512
|
+
`Readonly`\<[`SandboxFailureReference`](#sandboxfailurereference) & `object`\>
|
|
513
|
+
|
|
514
|
+
#### Constructors
|
|
515
|
+
|
|
516
|
+
##### Constructor
|
|
517
|
+
|
|
518
|
+
```ts
|
|
519
|
+
new SandboxCrashed(args): SandboxCrashed;
|
|
520
|
+
```
|
|
521
|
+
|
|
522
|
+
###### Parameters
|
|
523
|
+
|
|
524
|
+
| Parameter | Type |
|
|
525
|
+
| --------------- | ------------------------------------------------------------------------------------- |
|
|
526
|
+
| `args` | \{ `ref?`: `string`; `exit?`: `number`; `errno?`: `string`; `rawCause`: `unknown`; \} |
|
|
527
|
+
| `args.ref?` | `string` |
|
|
528
|
+
| `args.exit?` | `number` |
|
|
529
|
+
| `args.errno?` | `string` |
|
|
530
|
+
| `args.rawCause` | `unknown` |
|
|
531
|
+
|
|
532
|
+
###### Returns
|
|
533
|
+
|
|
534
|
+
[`SandboxCrashed`](#sandboxcrashed)
|
|
535
|
+
|
|
536
|
+
###### Inherited from
|
|
537
|
+
|
|
538
|
+
```ts
|
|
539
|
+
Data.TaggedError("SandboxCrashed")<
|
|
540
|
+
SandboxFailureReference & {
|
|
541
|
+
readonly exit?: number | undefined;
|
|
542
|
+
readonly errno?: string | undefined;
|
|
543
|
+
readonly rawCause: unknown;
|
|
544
|
+
}
|
|
545
|
+
>.constructor
|
|
546
|
+
```
|
|
547
|
+
|
|
548
|
+
#### Properties
|
|
549
|
+
|
|
550
|
+
##### ref?
|
|
551
|
+
|
|
552
|
+
```ts
|
|
553
|
+
readonly optional ref?: string;
|
|
554
|
+
```
|
|
555
|
+
|
|
556
|
+
###### Inherited from
|
|
557
|
+
|
|
558
|
+
```ts
|
|
559
|
+
Data.TaggedError("SandboxCrashed").ref;
|
|
560
|
+
```
|
|
561
|
+
|
|
562
|
+
##### exit?
|
|
563
|
+
|
|
564
|
+
```ts
|
|
565
|
+
readonly optional exit?: number;
|
|
566
|
+
```
|
|
567
|
+
|
|
568
|
+
###### Inherited from
|
|
569
|
+
|
|
570
|
+
```ts
|
|
571
|
+
Data.TaggedError("SandboxCrashed").exit;
|
|
572
|
+
```
|
|
573
|
+
|
|
574
|
+
##### errno?
|
|
575
|
+
|
|
576
|
+
```ts
|
|
577
|
+
readonly optional errno?: string;
|
|
578
|
+
```
|
|
579
|
+
|
|
580
|
+
###### Inherited from
|
|
581
|
+
|
|
582
|
+
```ts
|
|
583
|
+
Data.TaggedError("SandboxCrashed").errno;
|
|
584
|
+
```
|
|
585
|
+
|
|
586
|
+
##### rawCause
|
|
587
|
+
|
|
588
|
+
```ts
|
|
589
|
+
readonly rawCause: unknown;
|
|
590
|
+
```
|
|
591
|
+
|
|
592
|
+
###### Inherited from
|
|
593
|
+
|
|
594
|
+
```ts
|
|
595
|
+
Data.TaggedError("SandboxCrashed").rawCause;
|
|
596
|
+
```
|
|
597
|
+
|
|
598
|
+
---
|
|
599
|
+
|
|
600
|
+
### BadResponse
|
|
601
|
+
|
|
602
|
+
A received envelope could not be decoded. Its reason is operator only.
|
|
603
|
+
|
|
604
|
+
#### Extends
|
|
605
|
+
|
|
606
|
+
- `YieldableError`\<`this`\> & `object` &
|
|
607
|
+
`Readonly`\<[`SandboxFailureReference`](#sandboxfailurereference) & `object`\>
|
|
608
|
+
|
|
609
|
+
#### Constructors
|
|
610
|
+
|
|
611
|
+
##### Constructor
|
|
612
|
+
|
|
613
|
+
```ts
|
|
614
|
+
new BadResponse(args): BadResponse;
|
|
615
|
+
```
|
|
616
|
+
|
|
617
|
+
###### Parameters
|
|
618
|
+
|
|
619
|
+
| Parameter | Type |
|
|
620
|
+
| --------------- | ------------------------------------------------------------------ |
|
|
621
|
+
| `args` | \{ `ref?`: `string`; `reason`: `string`; `rawCause`: `unknown`; \} |
|
|
622
|
+
| `args.ref?` | `string` |
|
|
623
|
+
| `args.reason` | `string` |
|
|
624
|
+
| `args.rawCause` | `unknown` |
|
|
625
|
+
|
|
626
|
+
###### Returns
|
|
627
|
+
|
|
628
|
+
[`BadResponse`](#badresponse)
|
|
629
|
+
|
|
630
|
+
###### Inherited from
|
|
631
|
+
|
|
632
|
+
```ts
|
|
633
|
+
Data.TaggedError("BadResponse")<
|
|
634
|
+
SandboxFailureReference & {
|
|
635
|
+
readonly reason: string;
|
|
636
|
+
readonly rawCause: unknown;
|
|
637
|
+
}
|
|
638
|
+
>.constructor
|
|
639
|
+
```
|
|
640
|
+
|
|
641
|
+
#### Properties
|
|
642
|
+
|
|
643
|
+
##### ref?
|
|
644
|
+
|
|
645
|
+
```ts
|
|
646
|
+
readonly optional ref?: string;
|
|
647
|
+
```
|
|
648
|
+
|
|
649
|
+
###### Inherited from
|
|
650
|
+
|
|
651
|
+
```ts
|
|
652
|
+
Data.TaggedError("BadResponse").ref;
|
|
653
|
+
```
|
|
654
|
+
|
|
655
|
+
##### reason
|
|
656
|
+
|
|
657
|
+
```ts
|
|
658
|
+
readonly reason: string;
|
|
659
|
+
```
|
|
660
|
+
|
|
661
|
+
###### Inherited from
|
|
662
|
+
|
|
663
|
+
```ts
|
|
664
|
+
Data.TaggedError("BadResponse").reason;
|
|
665
|
+
```
|
|
666
|
+
|
|
667
|
+
##### rawCause
|
|
668
|
+
|
|
669
|
+
```ts
|
|
670
|
+
readonly rawCause: unknown;
|
|
671
|
+
```
|
|
672
|
+
|
|
673
|
+
###### Inherited from
|
|
674
|
+
|
|
675
|
+
```ts
|
|
676
|
+
Data.TaggedError("BadResponse").rawCause;
|
|
677
|
+
```
|
|
678
|
+
|
|
679
|
+
---
|
|
680
|
+
|
|
681
|
+
### ResultTooLarge
|
|
682
|
+
|
|
683
|
+
A JSON result exceeded Mycelium's output budget.
|
|
684
|
+
|
|
685
|
+
#### Extends
|
|
686
|
+
|
|
687
|
+
- `YieldableError`\<`this`\> & `object` &
|
|
688
|
+
`Readonly`\<[`SandboxFailureReference`](#sandboxfailurereference) & `object`\>
|
|
689
|
+
|
|
690
|
+
#### Constructors
|
|
691
|
+
|
|
692
|
+
##### Constructor
|
|
693
|
+
|
|
694
|
+
```ts
|
|
695
|
+
new ResultTooLarge(args): ResultTooLarge;
|
|
696
|
+
```
|
|
697
|
+
|
|
698
|
+
###### Parameters
|
|
699
|
+
|
|
700
|
+
| Parameter | Type |
|
|
701
|
+
| ----------- | ----------------------------------------- |
|
|
702
|
+
| `args` | \{ `ref?`: `string`; `size`: `number`; \} |
|
|
703
|
+
| `args.ref?` | `string` |
|
|
704
|
+
| `args.size` | `number` |
|
|
705
|
+
|
|
706
|
+
###### Returns
|
|
707
|
+
|
|
708
|
+
[`ResultTooLarge`](#resulttoolarge)
|
|
709
|
+
|
|
710
|
+
###### Inherited from
|
|
711
|
+
|
|
712
|
+
```ts
|
|
713
|
+
Data.TaggedError("ResultTooLarge")<
|
|
714
|
+
SandboxFailureReference & {
|
|
715
|
+
readonly size: number;
|
|
716
|
+
}
|
|
717
|
+
>.constructor
|
|
718
|
+
```
|
|
719
|
+
|
|
720
|
+
#### Properties
|
|
721
|
+
|
|
722
|
+
##### ref?
|
|
723
|
+
|
|
724
|
+
```ts
|
|
725
|
+
readonly optional ref?: string;
|
|
726
|
+
```
|
|
727
|
+
|
|
728
|
+
###### Inherited from
|
|
729
|
+
|
|
730
|
+
```ts
|
|
731
|
+
Data.TaggedError("ResultTooLarge").ref;
|
|
732
|
+
```
|
|
733
|
+
|
|
734
|
+
##### size
|
|
735
|
+
|
|
736
|
+
```ts
|
|
737
|
+
readonly size: number;
|
|
738
|
+
```
|
|
739
|
+
|
|
740
|
+
###### Inherited from
|
|
741
|
+
|
|
742
|
+
```ts
|
|
743
|
+
Data.TaggedError("ResultTooLarge").size;
|
|
744
|
+
```
|
|
745
|
+
|
|
746
|
+
---
|
|
747
|
+
|
|
748
|
+
### ResultNotJson
|
|
749
|
+
|
|
750
|
+
A result could not be represented as JSON.
|
|
751
|
+
|
|
752
|
+
#### Extends
|
|
753
|
+
|
|
754
|
+
- `YieldableError`\<`this`\> & `object` &
|
|
755
|
+
`Readonly`\<[`SandboxFailureReference`](#sandboxfailurereference) & `object`\>
|
|
756
|
+
|
|
757
|
+
#### Constructors
|
|
758
|
+
|
|
759
|
+
##### Constructor
|
|
760
|
+
|
|
761
|
+
```ts
|
|
762
|
+
new ResultNotJson(args): ResultNotJson;
|
|
763
|
+
```
|
|
764
|
+
|
|
765
|
+
###### Parameters
|
|
766
|
+
|
|
767
|
+
| Parameter | Type |
|
|
768
|
+
| ---------------- | ----------------------------------------------------------------- |
|
|
769
|
+
| `args` | \{ `ref?`: `string`; `kind`: `string`; `rawCause?`: `unknown`; \} |
|
|
770
|
+
| `args.ref?` | `string` |
|
|
771
|
+
| `args.kind` | `string` |
|
|
772
|
+
| `args.rawCause?` | `unknown` |
|
|
773
|
+
|
|
774
|
+
###### Returns
|
|
775
|
+
|
|
776
|
+
[`ResultNotJson`](#resultnotjson)
|
|
777
|
+
|
|
778
|
+
###### Inherited from
|
|
779
|
+
|
|
780
|
+
```ts
|
|
781
|
+
Data.TaggedError("ResultNotJson")<
|
|
782
|
+
SandboxFailureReference & {
|
|
783
|
+
readonly kind: string;
|
|
784
|
+
readonly rawCause?: unknown;
|
|
785
|
+
}
|
|
786
|
+
>.constructor
|
|
787
|
+
```
|
|
788
|
+
|
|
789
|
+
#### Properties
|
|
790
|
+
|
|
791
|
+
##### ref?
|
|
792
|
+
|
|
793
|
+
```ts
|
|
794
|
+
readonly optional ref?: string;
|
|
795
|
+
```
|
|
796
|
+
|
|
797
|
+
###### Inherited from
|
|
798
|
+
|
|
799
|
+
```ts
|
|
800
|
+
Data.TaggedError("ResultNotJson").ref;
|
|
801
|
+
```
|
|
802
|
+
|
|
803
|
+
##### kind
|
|
804
|
+
|
|
805
|
+
```ts
|
|
806
|
+
readonly kind: string;
|
|
807
|
+
```
|
|
808
|
+
|
|
809
|
+
###### Inherited from
|
|
810
|
+
|
|
811
|
+
```ts
|
|
812
|
+
Data.TaggedError("ResultNotJson").kind;
|
|
813
|
+
```
|
|
814
|
+
|
|
815
|
+
##### rawCause?
|
|
816
|
+
|
|
817
|
+
```ts
|
|
818
|
+
readonly optional rawCause?: unknown;
|
|
819
|
+
```
|
|
820
|
+
|
|
821
|
+
###### Inherited from
|
|
822
|
+
|
|
823
|
+
```ts
|
|
824
|
+
Data.TaggedError("ResultNotJson").rawCause;
|
|
825
|
+
```
|
|
826
|
+
|
|
827
|
+
---
|
|
828
|
+
|
|
829
|
+
### CapabilityFailed
|
|
830
|
+
|
|
831
|
+
Failure at a named capability boundary, with an owner-admitted diagnostic.
|
|
832
|
+
|
|
833
|
+
#### Extends
|
|
834
|
+
|
|
835
|
+
- `YieldableError`\<`this`\> & `object` &
|
|
836
|
+
`Readonly`\<[`CapabilityFailureFields`](#capabilityfailurefields)\>
|
|
837
|
+
|
|
838
|
+
#### Constructors
|
|
839
|
+
|
|
840
|
+
##### Constructor
|
|
841
|
+
|
|
842
|
+
```ts
|
|
843
|
+
new CapabilityFailed(fields): CapabilityFailed;
|
|
844
|
+
```
|
|
845
|
+
|
|
846
|
+
Retain the admitted diagnostic for ordinary Error consumers through the same
|
|
847
|
+
safe projection.
|
|
848
|
+
|
|
849
|
+
###### Parameters
|
|
850
|
+
|
|
851
|
+
| Parameter | Type |
|
|
852
|
+
| --------- | ----------------------------------------------------- |
|
|
853
|
+
| `fields` | [`CapabilityFailureFields`](#capabilityfailurefields) |
|
|
854
|
+
|
|
855
|
+
###### Returns
|
|
856
|
+
|
|
857
|
+
[`CapabilityFailed`](#capabilityfailed)
|
|
858
|
+
|
|
859
|
+
###### Overrides
|
|
860
|
+
|
|
861
|
+
```ts
|
|
862
|
+
Data.TaggedError(
|
|
863
|
+
"CapabilityFailed",
|
|
864
|
+
)<CapabilityFailureFields>.constructor
|
|
865
|
+
```
|
|
866
|
+
|
|
867
|
+
#### Properties
|
|
868
|
+
|
|
869
|
+
##### ref?
|
|
870
|
+
|
|
871
|
+
```ts
|
|
872
|
+
readonly optional ref?: string;
|
|
873
|
+
```
|
|
874
|
+
|
|
875
|
+
###### Inherited from
|
|
876
|
+
|
|
877
|
+
```ts
|
|
878
|
+
Data.TaggedError("CapabilityFailed").ref;
|
|
879
|
+
```
|
|
880
|
+
|
|
881
|
+
##### namespace
|
|
882
|
+
|
|
883
|
+
```ts
|
|
884
|
+
readonly namespace: string;
|
|
885
|
+
```
|
|
886
|
+
|
|
887
|
+
###### Inherited from
|
|
888
|
+
|
|
889
|
+
```ts
|
|
890
|
+
Data.TaggedError("CapabilityFailed").namespace;
|
|
891
|
+
```
|
|
892
|
+
|
|
893
|
+
##### operation
|
|
894
|
+
|
|
895
|
+
```ts
|
|
896
|
+
readonly operation: string;
|
|
897
|
+
```
|
|
898
|
+
|
|
899
|
+
###### Inherited from
|
|
900
|
+
|
|
901
|
+
```ts
|
|
902
|
+
Data.TaggedError("CapabilityFailed").operation;
|
|
903
|
+
```
|
|
904
|
+
|
|
905
|
+
##### rawCause?
|
|
906
|
+
|
|
907
|
+
```ts
|
|
908
|
+
readonly optional rawCause?: unknown;
|
|
909
|
+
```
|
|
910
|
+
|
|
911
|
+
###### Inherited from
|
|
912
|
+
|
|
913
|
+
```ts
|
|
914
|
+
Data.TaggedError("CapabilityFailed").rawCause;
|
|
915
|
+
```
|
|
916
|
+
|
|
917
|
+
##### cause
|
|
918
|
+
|
|
919
|
+
```ts
|
|
920
|
+
cause: Readonly<{
|
|
921
|
+
kind: "Files" | "Forage" | "InvalidInput" | "Unavailable" | "OperationFailed";
|
|
922
|
+
message: string;
|
|
923
|
+
}>;
|
|
924
|
+
```
|
|
925
|
+
|
|
926
|
+
###### Inherited from
|
|
927
|
+
|
|
928
|
+
```ts
|
|
929
|
+
Data.TaggedError("CapabilityFailed").cause;
|
|
930
|
+
```
|
|
931
|
+
|
|
932
|
+
---
|
|
933
|
+
|
|
934
|
+
### Unknown
|
|
935
|
+
|
|
936
|
+
A foreign throw violated the typed adapter contract.
|
|
937
|
+
|
|
938
|
+
#### Extends
|
|
939
|
+
|
|
940
|
+
- `YieldableError`\<`this`\> & `object` &
|
|
941
|
+
`Readonly`\<[`SandboxFailureReference`](#sandboxfailurereference) & `object`\>
|
|
942
|
+
|
|
943
|
+
#### Constructors
|
|
944
|
+
|
|
945
|
+
##### Constructor
|
|
946
|
+
|
|
947
|
+
```ts
|
|
948
|
+
new Unknown(args): Unknown;
|
|
949
|
+
```
|
|
950
|
+
|
|
951
|
+
###### Parameters
|
|
952
|
+
|
|
953
|
+
| Parameter | Type |
|
|
954
|
+
| --------------- | ---------------------------------------------- |
|
|
955
|
+
| `args` | \{ `ref?`: `string`; `rawCause`: `unknown`; \} |
|
|
956
|
+
| `args.ref?` | `string` |
|
|
957
|
+
| `args.rawCause` | `unknown` |
|
|
958
|
+
|
|
959
|
+
###### Returns
|
|
960
|
+
|
|
961
|
+
[`Unknown`](#unknown)
|
|
962
|
+
|
|
963
|
+
###### Inherited from
|
|
964
|
+
|
|
965
|
+
```ts
|
|
966
|
+
Data.TaggedError("Unknown")<
|
|
967
|
+
SandboxFailureReference & {
|
|
968
|
+
readonly rawCause: unknown;
|
|
969
|
+
}
|
|
970
|
+
>.constructor
|
|
971
|
+
```
|
|
972
|
+
|
|
973
|
+
#### Properties
|
|
974
|
+
|
|
975
|
+
##### ref?
|
|
976
|
+
|
|
977
|
+
```ts
|
|
978
|
+
readonly optional ref?: string;
|
|
979
|
+
```
|
|
980
|
+
|
|
981
|
+
###### Inherited from
|
|
982
|
+
|
|
983
|
+
```ts
|
|
984
|
+
Data.TaggedError("Unknown").ref;
|
|
985
|
+
```
|
|
986
|
+
|
|
987
|
+
##### rawCause
|
|
988
|
+
|
|
989
|
+
```ts
|
|
990
|
+
readonly rawCause: unknown;
|
|
991
|
+
```
|
|
992
|
+
|
|
993
|
+
###### Inherited from
|
|
994
|
+
|
|
995
|
+
```ts
|
|
996
|
+
Data.TaggedError("Unknown").rawCause;
|
|
997
|
+
```
|
|
998
|
+
|
|
999
|
+
## Type Aliases
|
|
1000
|
+
|
|
1001
|
+
### SandboxFailureReference
|
|
1002
|
+
|
|
1003
|
+
```ts
|
|
1004
|
+
type SandboxFailureReference = object;
|
|
1005
|
+
```
|
|
1006
|
+
|
|
1007
|
+
Optional source reference carried by sandbox failures.
|
|
1008
|
+
|
|
1009
|
+
#### Properties
|
|
1010
|
+
|
|
1011
|
+
##### ref?
|
|
1012
|
+
|
|
1013
|
+
```ts
|
|
1014
|
+
readonly optional ref?: string;
|
|
1015
|
+
```
|
|
1016
|
+
|
|
1017
|
+
---
|
|
1018
|
+
|
|
1019
|
+
### CapabilityDiagnostic
|
|
1020
|
+
|
|
1021
|
+
```ts
|
|
1022
|
+
type CapabilityDiagnostic = Readonly<{
|
|
1023
|
+
kind: "Files" | "Forage" | "InvalidInput" | "Unavailable" | "OperationFailed";
|
|
1024
|
+
message: string;
|
|
1025
|
+
}>;
|
|
1026
|
+
```
|
|
1027
|
+
|
|
1028
|
+
A capability owner explicitly admits this bounded diagnostic as safe.
|
|
1029
|
+
|
|
1030
|
+
---
|
|
1031
|
+
|
|
1032
|
+
### CapabilityFailureFields
|
|
1033
|
+
|
|
1034
|
+
```ts
|
|
1035
|
+
type CapabilityFailureFields = object;
|
|
1036
|
+
```
|
|
1037
|
+
|
|
1038
|
+
Fields admitted by a capability owner, with the original cause kept private.
|
|
1039
|
+
|
|
1040
|
+
#### Properties
|
|
1041
|
+
|
|
1042
|
+
##### ref?
|
|
1043
|
+
|
|
1044
|
+
```ts
|
|
1045
|
+
readonly optional ref?: string;
|
|
1046
|
+
```
|
|
1047
|
+
|
|
1048
|
+
##### namespace
|
|
1049
|
+
|
|
1050
|
+
```ts
|
|
1051
|
+
readonly namespace: string;
|
|
1052
|
+
```
|
|
1053
|
+
|
|
1054
|
+
##### operation
|
|
1055
|
+
|
|
1056
|
+
```ts
|
|
1057
|
+
readonly operation: string;
|
|
1058
|
+
```
|
|
1059
|
+
|
|
1060
|
+
##### cause
|
|
1061
|
+
|
|
1062
|
+
```ts
|
|
1063
|
+
readonly cause: CapabilityDiagnostic;
|
|
1064
|
+
```
|
|
1065
|
+
|
|
1066
|
+
##### rawCause?
|
|
1067
|
+
|
|
1068
|
+
```ts
|
|
1069
|
+
readonly optional rawCause?: unknown;
|
|
1070
|
+
```
|
|
1071
|
+
|
|
1072
|
+
---
|
|
1073
|
+
|
|
1074
|
+
### SandboxFailure
|
|
1075
|
+
|
|
1076
|
+
```ts
|
|
1077
|
+
type SandboxFailure =
|
|
1078
|
+
| SourceInvalid
|
|
1079
|
+
| GuestThrew
|
|
1080
|
+
| DeadlineExceeded
|
|
1081
|
+
| Cancelled
|
|
1082
|
+
| DispatchLost
|
|
1083
|
+
| SandboxCrashed
|
|
1084
|
+
| BadResponse
|
|
1085
|
+
| ResultTooLarge
|
|
1086
|
+
| ResultNotJson
|
|
1087
|
+
| CapabilityFailed
|
|
1088
|
+
| Unknown;
|
|
1089
|
+
```
|
|
1090
|
+
|
|
1091
|
+
Closed error channel shared by sandbox adapters and the invocation owner.
|
|
1092
|
+
|
|
1093
|
+
## Functions
|
|
1094
|
+
|
|
1095
|
+
### referenceSandboxFailure()
|
|
1096
|
+
|
|
1097
|
+
```ts
|
|
1098
|
+
function referenceSandboxFailure(failure, ref): SandboxFailure;
|
|
1099
|
+
```
|
|
1100
|
+
|
|
1101
|
+
Copy the failure to correlate one execution without mutating shared host errors.
|
|
1102
|
+
|
|
1103
|
+
#### Parameters
|
|
1104
|
+
|
|
1105
|
+
| Parameter | Type |
|
|
1106
|
+
| --------- | ----------------------------------- |
|
|
1107
|
+
| `failure` | [`SandboxFailure`](#sandboxfailure) |
|
|
1108
|
+
| `ref` | `string` |
|
|
1109
|
+
|
|
1110
|
+
#### Returns
|
|
1111
|
+
|
|
1112
|
+
[`SandboxFailure`](#sandboxfailure)
|
|
1113
|
+
|
|
1114
|
+
---
|
|
1115
|
+
|
|
1116
|
+
### sandboxFailureMessage()
|
|
1117
|
+
|
|
1118
|
+
```ts
|
|
1119
|
+
function sandboxFailureMessage(failure, includeReference?): string;
|
|
1120
|
+
```
|
|
1121
|
+
|
|
1122
|
+
The sole model projection. Transport, parser and raw cause fields stay private.
|
|
1123
|
+
|
|
1124
|
+
#### Parameters
|
|
1125
|
+
|
|
1126
|
+
| Parameter | Type | Default value |
|
|
1127
|
+
| ------------------ | ----------------------------------- | ------------- |
|
|
1128
|
+
| `failure` | [`SandboxFailure`](#sandboxfailure) | `undefined` |
|
|
1129
|
+
| `includeReference` | `boolean` | `true` |
|
|
1130
|
+
|
|
1131
|
+
#### Returns
|
|
1132
|
+
|
|
1133
|
+
`string`
|