ErrorWithCause: add .code and .domain

This commit is contained in:
Marc Rousavy
2021-02-23 15:59:07 +01:00
parent d60a3a34bc
commit 934106e837
3 changed files with 22 additions and 1 deletions

View File

@@ -46,6 +46,8 @@ The `CameraError` type is a baseclass type for all other errors and provides the
* `message`: A non-localized message text that provides a more information and context about the error and possibly problematic values.
* (optional) `cause`: An `ErrorWithCause` instance that provides information about the cause of the error.
* `cause.message`: The message of the error that caused the camera error. This is localized on iOS.
* (iOS) `cause.code`: The native error's error-code. (iOS only)
* (iOS) `cause.domain`: The native error's domain. (iOS only)
* (iOS) `cause.details`: More dictionary-style information about the cause. (iOS only)
* (Android) `cause.stacktrace`: A native Java stacktrace for the cause.
* (optional) `cause.cause`: The cause that caused the given error. (Recursive)