File: errors.QuickJSUnwrapError.md

package info (click to toggle)
node-quickjs-emscripten 0.23.0%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,900 kB
  • sloc: ansic: 71,457; javascript: 7,638; makefile: 506; sh: 153
file content (72 lines) | stat: -rw-r--r-- 1,337 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
[quickjs-emscripten](../README.md) / [Exports](../modules.md) / [errors](../modules/errors.md) / QuickJSUnwrapError

# Class: QuickJSUnwrapError

[errors](../modules/errors.md).QuickJSUnwrapError

Error thrown if [QuickJSContext.unwrapResult](QuickJSContext.md#unwrapresult) unwraps an error value that isn't an object.

## Hierarchy

- `Error`

  ↳ **`QuickJSUnwrapError`**

## Table of contents

### Constructors

- [constructor](errors.QuickJSUnwrapError.md#constructor)

### Properties

- [cause](errors.QuickJSUnwrapError.md#cause)
- [context](errors.QuickJSUnwrapError.md#context)
- [name](errors.QuickJSUnwrapError.md#name)

## Constructors

### constructor

• **new QuickJSUnwrapError**(`cause`, `context?`)

#### Parameters

| Name | Type |
| :------ | :------ |
| `cause` | `unknown` |
| `context?` | [`QuickJSContext`](QuickJSContext.md) |

#### Overrides

Error.constructor

#### Defined in

[ts/errors.ts:8](https://github.com/justjake/quickjs-emscripten/blob/main/ts/errors.ts#L8)

## Properties

### cause

• **cause**: `unknown`

___

### context

• `Optional` **context**: [`QuickJSContext`](QuickJSContext.md)

___

### name

• **name**: `string` = `"QuickJSUnwrapError"`

#### Overrides

Error.name

#### Defined in

[ts/errors.ts:7](https://github.com/justjake/quickjs-emscripten/blob/main/ts/errors.ts#L7)