Marc Rousavy 036856aed5
chore: Move everything into package/ (#1745)
* Move everything into package

* Remove .DS_Store

* Move scripts and eslintrc to package

* Create CODE_OF_CONDUCT.md

* fix some links

* Update all links (I think)

* Update generated docs

* Update notice-yarn-changes.yml

* Update validate-android.yml

* Update validate-cpp.yml

* Delete notice-yarn-changes.yml

* Update validate-cpp.yml

* Update validate-cpp.yml

* Update validate-js.yml

* Update validate-cpp.yml

* Update validate-cpp.yml

* wrong c++ style

* Revert "wrong c++ style"

This reverts commit 55a3575589c6f13f8b05134d83384f55e0601ab2.
2023-09-01 18:15:28 +02:00

99 lines
1.9 KiB
Markdown

---
id: "ErrorWithCause"
title: "ErrorWithCause"
sidebar_position: 0
custom_edit_url: null
---
Represents a JSON-style error cause. This contains native `NSError`/`Throwable` information, and can have recursive [`.cause`](ErrorWithCause.md#cause) properties until the ultimate cause has been found.
## Properties
### cause
`Optional` **cause**: [`ErrorWithCause`](ErrorWithCause.md)
Optional additional cause for nested errors
* iOS: N/A
* Android: `Throwable.cause`
#### Defined in
[CameraError.ts:105](https://github.com/mrousavy/react-native-vision-camera/blob/c66550ed/package/src/CameraError.ts#L105)
___
### code
`Optional` **code**: `number`
The native error's code.
* iOS: `NSError.code`
* Android: N/A
#### Defined in
[CameraError.ts:70](https://github.com/mrousavy/react-native-vision-camera/blob/c66550ed/package/src/CameraError.ts#L70)
___
### details
`Optional` **details**: `Record`<`string`, `unknown`\>
Optional additional details
* iOS: `NSError.userInfo`
* Android: N/A
#### Defined in
[CameraError.ts:91](https://github.com/mrousavy/react-native-vision-camera/blob/c66550ed/package/src/CameraError.ts#L91)
___
### domain
`Optional` **domain**: `string`
The native error's domain.
* iOS: `NSError.domain`
* Android: N/A
#### Defined in
[CameraError.ts:77](https://github.com/mrousavy/react-native-vision-camera/blob/c66550ed/package/src/CameraError.ts#L77)
___
### message
**message**: `string`
The native error description
* iOS: `NSError.message`
* Android: `Throwable.message`
#### Defined in
[CameraError.ts:84](https://github.com/mrousavy/react-native-vision-camera/blob/c66550ed/package/src/CameraError.ts#L84)
___
### stacktrace
`Optional` **stacktrace**: `string`
Optional Java stacktrace
* iOS: N/A
* Android: `Throwable.stacktrace.toString()`
#### Defined in
[CameraError.ts:98](https://github.com/mrousavy/react-native-vision-camera/blob/c66550ed/package/src/CameraError.ts#L98)