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