Added new Exception type

feature/top10
Laurent 7 years ago
parent 734590e149
commit 0de04343ba
  1. 7
      app/src/main/java/net/pokeranalytics/android/ui/adapter/RowRepresentableDataSource.kt

@ -68,6 +68,8 @@ interface StaticRowRepresentableDataSource: RowRepresentableDataSource {
}
}
/**
* Interface extending [RowRepresentableDataSource] to guide the implementation of a live list of [RowRepresentable]
* To do that, this interface overrides and provides a default implementation to specific methods of [RowRepresentableDataSource]
@ -89,6 +91,10 @@ class DisplayDescriptor(
var context: Context? = null) {
}
class UnmanagedRowRepresentableException(message: String) : Exception(message) {
}
/**
* An interface used to provide RowRepresentableAdapter content and value in the form of rows
*
@ -100,7 +106,6 @@ class DisplayDescriptor(
*/
interface DisplayableDataSource {
fun contentDescriptorForRow(row: RowRepresentable): DisplayDescriptor? {
return null
}

Loading…
Cancel
Save