Open
Bug 687057
Opened 14 years ago
Updated 3 years ago
Preferences could throw more useful error codes
Categories
(Core :: Preferences: Backend, enhancement)
Core
Preferences: Backend
Tracking
()
UNCONFIRMED
People
(Reporter: neil, Unassigned)
Details
When getting a preference there are typically four possible errors:
1. The pref service hasn't been initialised
2. The preference does not exist
3. The preference only exists as a user preference (for the default branch)
4. The preference exists but is of the wrong type
The latter three throw NS_ERROR_UNEXPECTED which makes them harder to debug. Perhaps NS_ERROR_FAILURE or NS_ERROR_NOT_AVAILABLE could be used instead.
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•