Serializablepublic class RdbReadOnlyException extends RdbException
If this exception is thrown, check the permission configuration of the database.
This class is inherited from RuntimeException. You must handle this exception by yourself.
SystemCapability.Data#DATA_APPDATAMGR| 构造器 | 说明 |
|---|---|
RdbReadOnlyException() |
An no-argument constructor used to create a
RdbReadOnlyException instance. |
RdbReadOnlyException(String error) |
A parameterized constructor used to create a
RdbReadOnlyException instance. |
public RdbReadOnlyException()
RdbReadOnlyException instance.
You can call this method as needed.
public RdbReadOnlyException(String error)
RdbReadOnlyException instance.
Your application can call this method to pass a specific exception message to distinguish exception scenarios.
error - Indicates the exception message.