KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > java > sql > SQLException

java.sql
Class SQLException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.sql.SQLException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BatchUpdateException, RowSetWarning, SerialException, SQLWarning, SyncFactoryException, SyncProviderException
See Also:
Top Examples, Source Code

public int getErrorCode()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[1219]Go through all SQL exceptions
By Anonymous on 2004/12/23 14:33:37  Rate
try 
  {   
    // some DB work 
  }  // end try 
 catch  (   SQLException SQLe )  
  {  
   while (  SQLe != null )  
    {  
   // do handling 
  
  
   SQLe = SQLe.getNextException (  ) ; 
    }  
  }   
  
  
 


public SQLException getNextException()
See Also:
setNextException(java.sql.SQLException)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[1852]Next Exception in the Exception Chain
By Anonymous on 2006/12/08 10:33:17  Rate
try  {  
 ... 
  }  
 catch  ( SQLException e )   
  {  
   for  ( ; e!=null; e = e.getNextException (  )   )  
    {  
    //do something with the exception e 
    }  
  
  
  
  } 


public String getSQLState()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setNextException(SQLException ex)
See Also:
getNextException()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public SQLException()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public SQLException(String reason)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public SQLException(String reason,
                    String SQLState)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public SQLException(String reason,
                    String SQLState,
                    int vendorCode)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags