From 4754ae1de447bb6224da8058866ba1ef88b004d6 Mon Sep 17 00:00:00 2001 From: Marc Rousavy Date: Tue, 23 Feb 2021 18:47:37 +0100 Subject: [PATCH] Update ERRORS.md --- docs/ERRORS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ERRORS.md b/docs/ERRORS.md index cbfb84c..78ac393 100644 --- a/docs/ERRORS.md +++ b/docs/ERRORS.md @@ -44,7 +44,7 @@ The `CameraError` type is a baseclass type for all other errors and provides the * `code`: A typed code in the form of `{domain}/{code}` that can be used to quickly identify and group errors * `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?`: An `ErrorWithCause` instance that provides information about the cause of the error. (Optional) * `cause.message`: The message of the error that caused the camera error. This is localized on iOS. * `cause.code?`: The native error's error-code. (iOS only) * `cause.domain?`: The native error's domain. (iOS only)