Marc Rousavy 0b7b4d50b5
Automatically build API documentation (#11)
* Automatically build API documentation using Typedoc and Docusaurus
* Move MD and move to MDX for Docusaurus Guides
2021-03-03 12:37:43 +01:00

2.0 KiB

id title sidebar_label custom_edit_url hide_title
index.errorwithcause Interface: ErrorWithCause index.ErrorWithCause null true

Interface: ErrorWithCause

index.ErrorWithCause

Represents a JSON-style error cause. This contains native NSError/Throwable information, and can have recursive .cause properties until the ultimate cause has been found.

Properties

cause

Optional cause: undefined | ErrorWithCause

Optional additional cause for nested errors

  • iOS: N/A
  • Android: Throwable.cause

Defined in: src/CameraError.ts:84


code

Optional code: undefined | number

The native error's code.

  • iOS: NSError.code
  • Android: N/A

Defined in: src/CameraError.ts:49


details

Optional details: undefined | Record<string, unknown>

Optional additional details

  • iOS: NSError.userInfo
  • Android: N/A

Defined in: src/CameraError.ts:70


domain

Optional domain: undefined | string

The native error's domain.

  • iOS: NSError.domain
  • Android: N/A

Defined in: src/CameraError.ts:56


message

message: string

The native error description (Localized on iOS)

  • iOS: NSError.message
  • Android: Throwable.message

Defined in: src/CameraError.ts:63


stacktrace

Optional stacktrace: undefined | string

Optional stacktrace

  • iOS: N/A
  • Android: Throwable.stacktrace.toString()

Defined in: src/CameraError.ts:77