public class

EmptyResultDataAccessException

extends IncorrectResultSizeDataAccessException
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

Class Overview

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.

Summary

Public Constructors
EmptyResultDataAccessException(int expectedSize)
Constructor for EmptyResultDataAccessException.
EmptyResultDataAccessException(String msg, int expectedSize)
Constructor for EmptyResultDataAccessException.
[Expand]
Inherited Methods
From class org.springframework.dao.IncorrectResultSizeDataAccessException
From class org.springframework.core.NestedRuntimeException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public EmptyResultDataAccessException (int expectedSize)

Constructor for EmptyResultDataAccessException.

Parameters
expectedSize the expected result size

public EmptyResultDataAccessException (String msg, int expectedSize)

Constructor for EmptyResultDataAccessException.

Parameters
msg the detail message
expectedSize the expected result size