Serializablepublic class RdbCantOpenException extends RdbException
This exception is thrown if the database file is corrupted or lost,
or the database file storage path does not exist.This class is inherited from RuntimeException.
You must handle this exception by yourself.
SystemCapability.Data#DATA_APPDATAMGR| 构造器 | 说明 |
|---|---|
RdbCantOpenException() |
An no-argument constructor used to create a
RdbCantOpenException instance. |
RdbCantOpenException(String error) |
A parameterized constructor used to create a
RdbCantOpenException instance. |
public RdbCantOpenException()
RdbCantOpenException instance.
You can call this method as needed.
public RdbCantOpenException(String error)
RdbCantOpenException instance.
Your application can call this method to pass a specific exception message to distinguish exception scenarios.
error - Indicates the exception message.