External Interfaces > Reality Java Interface > JavaDocs > JavaDocs for Reality SQL/JDBC Classes > RealSQLWarning

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

Reality V15.0 ()

: Class RealSQLWarning (RealSQL-JDBC) (realsqlwarning.html)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 


com.northgateis.reality.realsql
Class RealSQLWarning

java.lang.Object
 |
 +--java.lang.Throwable
 |
 +--java.lang.Exception
 |
 +--java.sql.SQLException
 |
 +--java.sql.SQLWarning
 |
 +--com.northgateis.reality.realsql.RealSQLWarning

public class RealSQLWarning
extends java.sql.SQLWarning

Wrapper object for SQLWarning's generated by the driver.

The constructors are the same as used by java.sql.SQLWarning, but with the supplied reason string concatenated to the vender and driver names.


Example:
RealSQLWarning(reason)
Is transformed into:
SQLWarning("[Northgate][RealSQL-JDBC]" + reason)

See Also:
SQLWarning, Serialized Form

Constructor Summary
RealSQLWarning(java.lang.Exception e)
          Create's a new RealSQLWarning with the reason set to e.getMessage().
RealSQLWarning(java.lang.String reason)
           
RealSQLWarning(java.lang.String reason, java.lang.String SQLState)
           
RealSQLWarning(java.lang.String reason, java.lang.String SQLState, int vendorCode)
           
 
Methods inherited from class java.sql.SQLWarning
getNextWarning, setNextWarning
 
Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, setNextException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RealSQLWarning

public RealSQLWarning(java.lang.String reason)

RealSQLWarning

public RealSQLWarning(java.lang.String reason,
 java.lang.String SQLState)

RealSQLWarning

public RealSQLWarning(java.lang.String reason,
 java.lang.String SQLState,
 int vendorCode)

RealSQLWarning

public RealSQLWarning(java.lang.Exception e)
Create's a new RealSQLWarning with the reason set to e.getMessage().

If the exception is an 'instanceof SQLWarning' it is chained to this exception.

Parameters:
e - exception used to construct a new RealSQLWarning.