AconfigStorageReadException
open class AconfigStorageReadException : RuntimeException
| kotlin.Any | ||||
| ↳ | kotlin.Throwable | |||
| ↳ | java.lang.Exception | |||
| ↳ | java.lang.RuntimeException | |||
| ↳ | android.os.flagging.AconfigStorageReadException | |||
Exception thrown when an error occurs while reading from Aconfig Storage.
This exception indicates a problem accessing or retrieving configuration data from Aconfig Storage. This could be due to various reasons, such as:
- The Aconfig Storage system is not found on the device.
 - The requested configuration package is not found.
 - The specified container is not found.
 - There was an error reading the Aconfig Storage file.
 - The fingerprint of the Aconfig Storage file does not match the expected fingerprint.
 
Summary
| Constants | |
|---|---|
| static Int | 
            
             Error code indicating that there was an error reading the Aconfig Storage file.  | 
        
| static Int | 
            
             Error code indicating that the specified container is not found.  | 
        
| static Int | 
            
             Generic error code indicating an unspecified Aconfig Storage error.  | 
        
| static Int | 
            
             Error code indicating that the requested configuration package is not found.  | 
        
| static Int | 
            
             Error code indicating that the Aconfig Storage system is not found on the device.  | 
        
| Public constructors | |
|---|---|
            AconfigStorageReadException(errorCode: Int, msg: String)Constructs a new   | 
        |
            AconfigStorageReadException(errorCode: Int, msg: String, cause: Throwable)Constructs a new   | 
        |
            AconfigStorageReadException(errorCode: Int, cause: Throwable)Constructs a new   | 
        |
| Public methods | |
|---|---|
| open Int | 
            
             Returns the error code associated with this exception.  | 
        
| Properties | |
|---|---|
| open String | 
            
             Returns the error message for this exception, including the error code and the original message.  | 
        
Constants
ERROR_CANNOT_READ_STORAGE_FILE
static val ERROR_CANNOT_READ_STORAGE_FILE: Int
Error code indicating that there was an error reading the Aconfig Storage file.
Value: 4ERROR_CONTAINER_NOT_FOUND
static val ERROR_CONTAINER_NOT_FOUND: Int
Error code indicating that the specified container is not found.
Value: 3ERROR_GENERIC
static val ERROR_GENERIC: Int
Generic error code indicating an unspecified Aconfig Storage error.
Value: 0ERROR_PACKAGE_NOT_FOUND
static val ERROR_PACKAGE_NOT_FOUND: Int
Error code indicating that the requested configuration package is not found.
Value: 2ERROR_STORAGE_SYSTEM_NOT_FOUND
static val ERROR_STORAGE_SYSTEM_NOT_FOUND: Int
Error code indicating that the Aconfig Storage system is not found on the device.
Value: 1Public constructors
AconfigStorageReadException
AconfigStorageReadException(
errorCode: Int,
msg: String)
Constructs a new AconfigStorageReadException with the specified error code and detail message.
| Parameters | |
|---|---|
errorCode | 
            Int: The error code for this exception. Value is android.os.flagging.AconfigStorageReadException#ERROR_GENERIC, android.os.flagging.AconfigStorageReadException#ERROR_STORAGE_SYSTEM_NOT_FOUND, android.os.flagging.AconfigStorageReadException#ERROR_PACKAGE_NOT_FOUND, android.os.flagging.AconfigStorageReadException#ERROR_CONTAINER_NOT_FOUND, android.os.flagging.AconfigStorageReadException#ERROR_CANNOT_READ_STORAGE_FILE, or android.os.flagging.AconfigStorageReadException.ERROR_FILE_FINGERPRINT_MISMATCH | 
          
msg | 
            String: The detail message for this exception. This value cannot be null. | 
          
AconfigStorageReadException
AconfigStorageReadException(
errorCode: Int,
msg: String,
cause: Throwable)
Constructs a new AconfigStorageReadException with the specified error code, detail message, and cause.
| Parameters | |
|---|---|
errorCode | 
            Int: The error code for this exception. Value is android.os.flagging.AconfigStorageReadException#ERROR_GENERIC, android.os.flagging.AconfigStorageReadException#ERROR_STORAGE_SYSTEM_NOT_FOUND, android.os.flagging.AconfigStorageReadException#ERROR_PACKAGE_NOT_FOUND, android.os.flagging.AconfigStorageReadException#ERROR_CONTAINER_NOT_FOUND, android.os.flagging.AconfigStorageReadException#ERROR_CANNOT_READ_STORAGE_FILE, or android.os.flagging.AconfigStorageReadException.ERROR_FILE_FINGERPRINT_MISMATCH | 
          
msg | 
            String: The detail message for this exception. This value cannot be null. | 
          
cause | 
            Throwable: The cause of this exception. This value cannot be null. | 
          
AconfigStorageReadException
AconfigStorageReadException(
errorCode: Int,
cause: Throwable)
Constructs a new AconfigStorageReadException with the specified error code and cause.
| Parameters | |
|---|---|
errorCode | 
            Int: The error code for this exception. Value is android.os.flagging.AconfigStorageReadException#ERROR_GENERIC, android.os.flagging.AconfigStorageReadException#ERROR_STORAGE_SYSTEM_NOT_FOUND, android.os.flagging.AconfigStorageReadException#ERROR_PACKAGE_NOT_FOUND, android.os.flagging.AconfigStorageReadException#ERROR_CONTAINER_NOT_FOUND, android.os.flagging.AconfigStorageReadException#ERROR_CANNOT_READ_STORAGE_FILE, or android.os.flagging.AconfigStorageReadException.ERROR_FILE_FINGERPRINT_MISMATCH | 
          
cause | 
            Throwable: The cause of this exception. This value cannot be null. | 
          
Public methods
getErrorCode
open fun getErrorCode(): Int
Returns the error code associated with this exception.
| Return | |
|---|---|
Int | 
            The error code. Value is android.os.flagging.AconfigStorageReadException#ERROR_GENERIC, android.os.flagging.AconfigStorageReadException#ERROR_STORAGE_SYSTEM_NOT_FOUND, android.os.flagging.AconfigStorageReadException#ERROR_PACKAGE_NOT_FOUND, android.os.flagging.AconfigStorageReadException#ERROR_CONTAINER_NOT_FOUND, android.os.flagging.AconfigStorageReadException#ERROR_CANNOT_READ_STORAGE_FILE, or android.os.flagging.AconfigStorageReadException.ERROR_FILE_FINGERPRINT_MISMATCH | 
          
Properties
message
open val message: String
Returns the error message for this exception, including the error code and the original message.
| Return | |
|---|---|
String | 
            The error message. This value cannot be null. |