From 0de04343ba9e66fdc9a23af29b187a3e00ceeb5e Mon Sep 17 00:00:00 2001 From: Laurent Date: Thu, 7 Mar 2019 15:59:08 +0100 Subject: [PATCH] Added new Exception type --- .../android/ui/adapter/RowRepresentableDataSource.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/net/pokeranalytics/android/ui/adapter/RowRepresentableDataSource.kt b/app/src/main/java/net/pokeranalytics/android/ui/adapter/RowRepresentableDataSource.kt index 19e6c255..4f73b66f 100644 --- a/app/src/main/java/net/pokeranalytics/android/ui/adapter/RowRepresentableDataSource.kt +++ b/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 }