EmptyResultSetException

public class EmptyResultSetException
extends RuntimeException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ androidx.room.EmptyResultSetException


Thrown by Room when the query needs to return a result (e.g. in a Single<T> query) but the returned result set from the database is empty.

Summary

Public constructors

EmptyResultSetException(String message)

Constructs a new EmptyResultSetException with the exception.

Inherited methods

Public constructors

EmptyResultSetException

public EmptyResultSetException (String message)

Constructs a new EmptyResultSetException with the exception.

Parameters
message String: The SQL query which didn't return any results.