Update ERRORS.md

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

View File

@ -41,9 +41,7 @@ switch (error.code) {
## The Error types ## The Error types
### `CameraError` The `CameraError` type is a baseclass type for all other errors and provides the following properties:
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 in the form of `{domain}/{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. * `message`: A non-localized message text that provides a more information and context about the error and possibly problematic values.