1827974 Members
2915 Online
109973 Solutions
New Discussion

SqlWarning class

 
ktananki
New Member

SqlWarning class

Is there any difference in the SqlWarning class in the packaga java.sql from java1.3 to java1.4

SqlWarning is a exception when I extend myexception from SqlWarning , I see the whenever myexception is raised , log is written into the oracle udump by the code in the constructor of the SQLWarning class.

I see the following code in the constructor
/**
* Constructs a fully-specified SQLWarning object
* initialized with the given values.
*
* @param reason a description of the warning
* @param SQLstate an XOPEN code identifying the warning
* @param vendorCode a database vendor-specific warning code
*/
public SQLWarning(String reason, String SQLstate, int vendorCode) {
super(reason, SQLstate, vendorCode);
DriverManager.println("SQLWarning: reason(" + reason +
") SQLstate(" + SQLstate +
") vendor code(" + vendorCode + ")");
}