Update ERRORS.md

This commit is contained in:
Marc Rousavy 2021-02-23 10:58:00 +01:00 committed by GitHub
parent 14fec709e5
commit f40fdf8cf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,7 @@ switch (error.code) {
The `CameraError` type is a baseclass type for all other errors, and should only be used internally. It, and therefore all other error classes, provide the following properties:
* `code`: A typed code that can be used to quickly identify and group errors
* `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.message`: The message of the error that caused the camera error. This is localized on iOS.