chatgpt-api/docs/classes/ChatGPTError.md

100 wiersze
1.7 KiB
Markdown
Czysty Zwykły widok Historia

2022-12-12 00:04:20 +00:00
[chatgpt](../readme.md) / [Exports](../modules.md) / ChatGPTError
# Class: ChatGPTError
## Hierarchy
- `Error`
**`ChatGPTError`**
## Table of contents
### Constructors
- [constructor](ChatGPTError.md#constructor)
### Properties
2023-02-19 08:51:53 +00:00
- [accountId](ChatGPTError.md#accountid)
- [isFinal](ChatGPTError.md#isfinal)
2022-12-12 00:04:20 +00:00
- [statusCode](ChatGPTError.md#statuscode)
- [statusText](ChatGPTError.md#statustext)
## Constructors
### constructor
**new ChatGPTError**(`message?`)
#### Parameters
| Name | Type |
| :------ | :------ |
| `message?` | `string` |
#### Inherited from
Error.constructor
#### Defined in
2023-02-01 10:58:25 +00:00
node_modules/.pnpm/typescript@4.9.5/node_modules/typescript/lib/lib.es5.d.ts:1059
2022-12-12 00:04:20 +00:00
**new ChatGPTError**(`message?`, `options?`)
#### Parameters
| Name | Type |
| :------ | :------ |
| `message?` | `string` |
| `options?` | `ErrorOptions` |
#### Inherited from
Error.constructor
#### Defined in
2023-02-01 10:58:25 +00:00
node_modules/.pnpm/typescript@4.9.5/node_modules/typescript/lib/lib.es2022.error.d.ts:30
2022-12-12 00:04:20 +00:00
## Properties
2023-02-19 08:51:53 +00:00
### accountId
`Optional` **accountId**: `string`
#### Defined in
2023-03-02 05:32:33 +00:00
[src/types.ts:47](https://github.com/transitive-bullshit/chatgpt-api/blob/1e4ddd6/src/types.ts#L47)
2023-02-19 08:51:53 +00:00
___
### isFinal
`Optional` **isFinal**: `boolean`
#### Defined in
2023-03-02 05:32:33 +00:00
[src/types.ts:46](https://github.com/transitive-bullshit/chatgpt-api/blob/1e4ddd6/src/types.ts#L46)
2023-02-19 08:51:53 +00:00
___
2022-12-12 00:04:20 +00:00
### statusCode
`Optional` **statusCode**: `number`
#### Defined in
2023-03-02 05:32:33 +00:00
[src/types.ts:44](https://github.com/transitive-bullshit/chatgpt-api/blob/1e4ddd6/src/types.ts#L44)
2022-12-12 00:04:20 +00:00
___
### statusText
`Optional` **statusText**: `string`
#### Defined in
2023-03-02 05:32:33 +00:00
[src/types.ts:45](https://github.com/transitive-bullshit/chatgpt-api/blob/1e4ddd6/src/types.ts#L45)