The Spring Framework

org.springframework.dao
Class InvalidDataAccessApiUsageException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.springframework.core.NestedRuntimeException
                  extended by org.springframework.dao.DataAccessException
                      extended by org.springframework.dao.InvalidDataAccessApiUsageException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
JdoUsageException

public class InvalidDataAccessApiUsageException
extends DataAccessException

Exception thrown on incorrect usage of the API, such as failing to "compile" a query object that needed compilation before execution.

This represents a problem in our Java data access framework, not the underlying data access infrastructure.

Author:
Rod Johnson
See Also:
Serialized Form

Constructor Summary
InvalidDataAccessApiUsageException(String msg)
          Constructor for InvalidDataAccessApiUsageException.
InvalidDataAccessApiUsageException(String msg, Throwable cause)
          Constructor for InvalidDataAccessApiUsageException.
 
Method Summary
 
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getCause, getMessage, getMostSpecificCause, getRootCause, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidDataAccessApiUsageException

public InvalidDataAccessApiUsageException(String msg)
Constructor for InvalidDataAccessApiUsageException.

Parameters:
msg - the detail message

InvalidDataAccessApiUsageException

public InvalidDataAccessApiUsageException(String msg,
                                          Throwable cause)
Constructor for InvalidDataAccessApiUsageException.

Parameters:
msg - the detail message
cause - the root cause from the data access API in use

The Spring Framework

Copyright © 2002-2007 The Spring Framework.