lightbulb_outline Please take our October 2018 developer survey. Start survey
added in version 2.0.0
belongs to Maven artifact androidx.room:room-rxjava2:2.1.0-alpha01

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

added in version 2.0.0
public EmptyResultSetException (String message)

Constructs a new EmptyResultSetException with the exception.

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