Add `cause` codes to exceptions that we expect to map to errors shown to the user
Categories
(Firefox :: Profile Backup, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox129 | --- | fixed |
People
(Reporter: mconley, Assigned: sthompson)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fidefe-device-migration])
Attachments
(1 file)
We have a whole bunch of exceptions that can get thrown in the BackupService and related components. Some of those result in errors that need to be shown to users.
What I think we should do is to have a cause
get supplied for every error we expect to be shown to users. The value of the cause
should be a numeric constant defined in ArchiveUtils
.
Then, if and when we need to show an exception to a user, we can hopefully map from the cause
constant to the appropriate localized string for the context.
Filed as a meta, because I figure we'll probably do this piecemeal.
Assignee | ||
Comment 1•3 months ago
|
||
This introduces error code causes that can be used by UI components to present context-relevant error text. This starts throwing errors with cause error codes in parts of the backup codebase, but there are still areas (especially at the boundary with web workers) where cause codes need to be introduced and handled.
Updated•3 months ago
|
Reporter | ||
Updated•3 months ago
|
Updated•3 months ago
|
Comment 4•3 months ago
|
||
bugherder |
Description
•