<class name="QSqlError" doc="/**
&lt;p&gt;The &lt;a href=&quot;QSqlError.html#QSqlError(com.trolltech.qt.sql.QSqlError)&quot;&gt;&lt;tt&gt;QSqlError&lt;/tt&gt;&lt;/a&gt; class provides SQL database error information.&lt;/p&gt;
&lt;p&gt;A &lt;a href=&quot;QSqlError.html#QSqlError(com.trolltech.qt.sql.QSqlError)&quot;&gt;&lt;tt&gt;QSqlError&lt;/tt&gt;&lt;/a&gt; object can provide database-specific error data, including the &lt;a href=&quot;QSqlError.html#driverText()&quot;&gt;&lt;tt&gt;driverText&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QSqlError.html#databaseText()&quot;&gt;&lt;tt&gt;databaseText&lt;/tt&gt;&lt;/a&gt; messages (or both concatenated together as &lt;a href=&quot;QSqlError.html#text()&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt;), and the error &lt;a href=&quot;QSqlError.html#number()&quot;&gt;&lt;tt&gt;number&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QSqlError.html#type()&quot;&gt;&lt;tt&gt;type&lt;/tt&gt;&lt;/a&gt;. The functions all have setters so that you can create and return &lt;a href=&quot;QSqlError.html#QSqlError(com.trolltech.qt.sql.QSqlError)&quot;&gt;&lt;tt&gt;QSqlError&lt;/tt&gt;&lt;/a&gt; objects from your own classes, for example from your own SQL drivers.&lt;/p&gt;

@see &lt;tt&gt;QSqlDatabase::lastError&lt;/tt&gt;
@see &lt;tt&gt;QSqlQuery::lastError&lt;/tt&gt; */">
    <method name="public QSqlError(java.lang.String driverText, java.lang.String databaseText, com.trolltech.qt.sql.QSqlError.ErrorType type, int number)" doc="/**
&lt;p&gt;Constructs an error containing the driver error text &lt;tt&gt;driverText&lt;/tt&gt;, the database-specific error text &lt;tt&gt;databaseText&lt;/tt&gt;, the type &lt;tt&gt;type&lt;/tt&gt; and the optional error number &lt;tt&gt;number&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QSqlError(java.lang.String driverText, java.lang.String databaseText, com.trolltech.qt.sql.QSqlError.ErrorType type)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSqlError.html#QSqlError(com.trolltech.qt.sql.QSqlError)&quot;&gt;&lt;tt&gt;QSqlError&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;driverText&lt;/tt&gt;, &lt;tt&gt;databaseText&lt;/tt&gt;, &lt;tt&gt;type&lt;/tt&gt;, -1). */"/>
    <method name="public QSqlError(java.lang.String driverText, java.lang.String databaseText)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSqlError.html#QSqlError(com.trolltech.qt.sql.QSqlError)&quot;&gt;&lt;tt&gt;QSqlError&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;driverText&lt;/tt&gt;, &lt;tt&gt;databaseText&lt;/tt&gt;, NoError, -1). */"/>
    <method name="public QSqlError(java.lang.String driverText)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSqlError.html#QSqlError(com.trolltech.qt.sql.QSqlError)&quot;&gt;&lt;tt&gt;QSqlError&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;driverText&lt;/tt&gt;, QString(), NoError, -1). */"/>
    <method name="public QSqlError()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSqlError.html#QSqlError(com.trolltech.qt.sql.QSqlError)&quot;&gt;&lt;tt&gt;QSqlError&lt;/tt&gt;&lt;/a&gt;(QString(), QString(), NoError, -1). */"/>
    <method name="public QSqlError(com.trolltech.qt.sql.QSqlError other)" doc="/**
&lt;p&gt;Creates a copy of &lt;tt&gt;other&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final java.lang.String databaseText()" doc="/**
&lt;p&gt;Returns the text of the error as reported by the database. This may contain database-specific descriptions; it may be empty.&lt;/p&gt;

@see &lt;a href=&quot;QSqlError.html#setDatabaseText(java.lang.String)&quot;&gt;&lt;tt&gt;setDatabaseText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSqlError.html#driverText()&quot;&gt;&lt;tt&gt;driverText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSqlError.html#text()&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String driverText()" doc="/**
&lt;p&gt;Returns the text of the error as reported by the driver. This may contain database-specific descriptions. It may also be empty.&lt;/p&gt;

@see &lt;a href=&quot;QSqlError.html#setDriverText(java.lang.String)&quot;&gt;&lt;tt&gt;setDriverText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSqlError.html#databaseText()&quot;&gt;&lt;tt&gt;databaseText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSqlError.html#text()&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isValid()" doc="/**
&lt;p&gt;Returns true if an error is set, otherwise false.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QSqlQueryModel model;
    model.setQuery(&amp;quot;select * from myTable&amp;quot;);
    if (model.lastError().isValid())
        qDebug() &amp;lt;&amp;lt; model.lastError();&lt;/pre&gt;

@see &lt;a href=&quot;QSqlError.html#type()&quot;&gt;&lt;tt&gt;type&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int number()" doc="/**
&lt;p&gt;Returns the database-specific error number, or -1 if it cannot be determined.&lt;/p&gt;

@see &lt;a href=&quot;QSqlError.html#setNumber(int)&quot;&gt;&lt;tt&gt;setNumber&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setDatabaseText(java.lang.String databaseText)" doc="/**
&lt;p&gt;Sets the database error text to the value of &lt;tt&gt;databaseText&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QSqlError.html#databaseText()&quot;&gt;&lt;tt&gt;databaseText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSqlError.html#setDriverText(java.lang.String)&quot;&gt;&lt;tt&gt;setDriverText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSqlError.html#text()&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setDriverText(java.lang.String driverText)" doc="/**
&lt;p&gt;Sets the driver error text to the value of &lt;tt&gt;driverText&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QSqlError.html#driverText()&quot;&gt;&lt;tt&gt;driverText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSqlError.html#setDatabaseText(java.lang.String)&quot;&gt;&lt;tt&gt;setDatabaseText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSqlError.html#text()&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setNumber(int number)" doc="/**
&lt;p&gt;Sets the database-specific error number to &lt;tt&gt;number&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QSqlError.html#number()&quot;&gt;&lt;tt&gt;number&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setType(com.trolltech.qt.sql.QSqlError.ErrorType type)" doc="/**
&lt;p&gt;Sets the error type to the value of &lt;tt&gt;type&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QSqlError.html#type()&quot;&gt;&lt;tt&gt;type&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String text()" doc="/**
&lt;p&gt;This is a convenience function that returns &lt;a href=&quot;QSqlError.html#databaseText()&quot;&gt;&lt;tt&gt;databaseText&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QSqlError.html#driverText()&quot;&gt;&lt;tt&gt;driverText&lt;/tt&gt;&lt;/a&gt; concatenated into a single string.&lt;/p&gt;

@see &lt;a href=&quot;QSqlError.html#driverText()&quot;&gt;&lt;tt&gt;driverText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSqlError.html#databaseText()&quot;&gt;&lt;tt&gt;databaseText&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.sql.QSqlError.ErrorType type()" doc="/**
&lt;p&gt;Returns the error type, or -1 if the type cannot be determined.&lt;/p&gt;

@see &lt;a href=&quot;QSqlError.html#setType(com.trolltech.qt.sql.QSqlError.ErrorType)&quot;&gt;&lt;tt&gt;setType&lt;/tt&gt;&lt;/a&gt; */"/>
    <enum name="ErrorType" doc="/**
&lt;p&gt;This enum type describes the context in which the error occurred, e.g&amp;#x2e;, a connection error, a statement error, etc.&lt;/p&gt;
 */">
        <enum-value name="NoError" doc="/**
&lt;p&gt;No error occurred.&lt;/p&gt;
 */"/>
        <enum-value name="ConnectionError" doc="/**
&lt;p&gt;Connection error.&lt;/p&gt;
 */"/>
        <enum-value name="StatementError" doc="/**
&lt;p&gt;SQL statement syntax error.&lt;/p&gt;
 */"/>
        <enum-value name="TransactionError" doc="/**
&lt;p&gt;Transaction failed error.&lt;/p&gt;
 */"/>
        <enum-value name="UnknownError" doc="/**
&lt;p&gt;Unknown error.&lt;/p&gt;
 */"/>
</enum>
</class>
