Register now for Android Dev Summit 2019!

EmptyResultSetException

open class EmptyResultSetException : RuntimeException
kotlin.Any
   ↳ kotlin.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

<init>(message: String!)

Constructs a new EmptyResultSetException with the exception.

Public constructors

<init>

EmptyResultSetException(message: String!)

Constructs a new EmptyResultSetException with the exception.

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