SignOn::CredentialsDBError Class
An error of the secrets storage. More...
- Header:
#include <SignOn/AbstractSecretsStorage>
List of all members, including inherited members
Public Types
Public Functions
- CredentialsDBError(const QString &text = QString(), SignOn::CredentialsDBError::ErrorType type = NoError)
- void clear()
- bool isValid() const
- void setText(const QString &text)
- void setType(SignOn::CredentialsDBError::ErrorType type)
- QString text() const
- SignOn::CredentialsDBError::ErrorType type() const
Detailed Description
See also AbstractSecretsStorage::lastError()
Member Type Documentation
enum CredentialsDBError::ErrorType
The kind of error.
| Constant | Value | Description |
|---|---|---|
SignOn::CredentialsDBError::NoError |
0 |
No error. |
SignOn::CredentialsDBError::NotOpen |
1 |
The DB is not open |
SignOn::CredentialsDBError::ConnectionError |
2 |
The DB is disconnected |
SignOn::CredentialsDBError::StatementError |
3 |
The last command failed |
SignOn::CredentialsDBError::UnknownError |
4 |
Any other error. |
Member Function Documentation
CredentialsDBError::CredentialsDBError(const QString &text = QString(), SignOn::CredentialsDBError::ErrorType type = NoError)
Creates an error of type with the description text.
void CredentialsDBError::clear()
Resets to NoError with no description.
bool CredentialsDBError::isValid() const
Whether this is an error: true unless the type is NoError.
void CredentialsDBError::setText(const QString &text)
Sets the description to text.
See also text()
void CredentialsDBError::setType(SignOn::CredentialsDBError::ErrorType type)
Sets the kind of error to type.
See also type()
QString CredentialsDBError::text() const
The error's description.
See also setText()
SignOn::CredentialsDBError::ErrorType CredentialsDBError::type() const
The kind of error.
See also setType()