Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » dao » [javadoc | source]
org.springframework.dao
public class: EmptyResultDataAccessException [javadoc | source]
java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         java.lang.RuntimeException
            org.springframework.core.NestedRuntimeException
               org.springframework.dao.DataAccessException
                  org.springframework.dao.NonTransientDataAccessException
                     org.springframework.dao.DataRetrievalFailureException
                        org.springframework.dao.IncorrectResultSizeDataAccessException
                           org.springframework.dao.EmptyResultDataAccessException

All Implemented Interfaces:
    Serializable

Data access exception thrown when a result was expected to have at least one row (or element) but zero rows (or elements) were actually returned.
Constructor:
 public EmptyResultDataAccessException(int expectedSize) 
 public EmptyResultDataAccessException(String msg,
    int expectedSize) 
    Constructor for EmptyResultDataAccessException.
    Parameters:
    msg - the detail message
    expectedSize - the expected result size
Methods from org.springframework.dao.IncorrectResultSizeDataAccessException:
getActualSize,   getExpectedSize
Methods from org.springframework.core.NestedRuntimeException:
contains,   getMessage,   getMostSpecificCause,   getRootCause
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait