|  | // Copyright 2019 The Fuchsia Authors. All rights reserved. | 
|  | // Use of this source code is governed by a BSD-style license that can be | 
|  | // found in the LICENSE file. | 
|  | library fuchsia.settings; | 
|  |  | 
|  | /// Common error code used across different settings. | 
|  | type Error = strict enum { | 
|  | FAILED = 1; | 
|  | UNSUPPORTED = 2; | 
|  | }; | 
|  |  | 
|  | /// Common epitaph messages used across different settings. | 
|  | type SettingsEpitaph = strict enum { | 
|  | // The request to the service is not supported. The client should not try to reconnect. | 
|  | REQUEST_NOT_SUPPORTED = 1; | 
|  | // There was an unexpected error in the underlying service. The client may try to | 
|  | // reconnect as it is unknown what type of error occurred. | 
|  | INTERNAL_SERVICE_ERROR = 2; | 
|  | // There was an error communicating with persistent storage. The client is not recommended | 
|  | // to reconnect as the storage is not expected to fail. | 
|  | PERSISTENT_STORAGE_ERROR = 3; | 
|  | // Failed to read device information from file. The client is not recommended to try to | 
|  | // reconnect as the file reads are not expected to fail. | 
|  | FILE_READ_ERROR = 4; | 
|  | }; |