ProgramixGenericLib v5.0.1

com.programix.sql
Class SQLTimedOutException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.sql.SQLException
              extended by com.programix.sql.SQLTimedOutException
All Implemented Interfaces:
Serializable

public class SQLTimedOutException
extends SQLException

This subclass of SQLException is thrown by some methods to indicate that a timeout occurred on an SQL-related activity. See TimedOutException in the com.programix.thread package for general time out handling (this class exists so that in places where only an SQLException is allowed, this subclass can be used to signal more specific information).

This is a subclass of SQLException so callers are not required to catch anything more specific than SQLException if they are not interested. However, if the caller is interested, this exception is a way to probe to find out more about what caused the exception.

Author:
Paul Hyde
See Also:
Serialized Form

Constructor Summary
SQLTimedOutException()
           
SQLTimedOutException(long msTimeout)
           
SQLTimedOutException(String message)
           
SQLTimedOutException(String message, Throwable cause)
           
SQLTimedOutException(Throwable cause)
           
 
Method Summary
 
Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, setNextException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SQLTimedOutException

public SQLTimedOutException(String message,
                            Throwable cause)

SQLTimedOutException

public SQLTimedOutException(Throwable cause)

SQLTimedOutException

public SQLTimedOutException(String message)

SQLTimedOutException

public SQLTimedOutException(long msTimeout)

SQLTimedOutException

public SQLTimedOutException()

ProgramixGenericLib v5.0.1

Copyright © 2001-2009 Programix Incorporated. All rights reserved. ProgramixGenericLib is free and is OSI Certified Open Source Software under the BSD license.