parent
4055ac56ef
commit
7e3644ddbd
@ -1,25 +1,22 @@ |
|||||||
package net.pokeranalytics.android.exceptions |
package net.pokeranalytics.android.exceptions |
||||||
|
|
||||||
class ModelException(message: String) : Exception(message) { |
import net.pokeranalytics.android.ui.view.rowrepresentable.FilterElementRow |
||||||
|
|
||||||
} |
class ModelException(message: String) : Exception(message) |
||||||
|
class FormattingException(message: String) : Exception(message) |
||||||
class FormattingException(message: String) : Exception(message) { |
class RowRepresentableEditDescriptorException(message: String) : Exception(message) |
||||||
|
|
||||||
} |
class ConfigurationException(message: String) : Exception(message) |
||||||
|
|
||||||
class RowRepresentableEditDescriptorException(message: String) : Exception(message) { |
sealed class PokerAnalyticsException(message: String) : Exception(message) { |
||||||
|
object FilterElementUnknownName : PokerAnalyticsException(message = "No filterElement name was found to identify the queryType") |
||||||
} |
object FilterElementUnknownSectionName: PokerAnalyticsException(message = "No filterElement section name was found to identify the queryType") |
||||||
|
object FilterMissingEntity: PokerAnalyticsException(message = "This filter has no entity initialized") |
||||||
class FilterValueMapException(message: String) : Exception(message) { |
object FilterUnhandledEntity : PokerAnalyticsException(message = "This entity is not filterable") |
||||||
init { |
object QueryValueMapUnknown: PokerAnalyticsException(message = "fieldName is missing") |
||||||
println("FilterValueMapException(): $message") |
object QueryTypeUnhandled: PokerAnalyticsException(message = "filter type not handled") |
||||||
} |
object QueryValueMapUnexpectedValue: PokerAnalyticsException(message = "valueMap null not expected") |
||||||
} |
object FilterElementExpectedValueMissing : PokerAnalyticsException(message = "filter is empty or null") |
||||||
|
data class QueryValueMapMissingKeys(val missingKeys: List<String>) : PokerAnalyticsException(message = "valueMap does not contain $missingKeys") |
||||||
class FilterMissingEntityException(message: String) : Exception(message) |
data class UnknownQueryTypeForRow(val filterElementRow: FilterElementRow) : PokerAnalyticsException(message = "no filter type for $filterElementRow") |
||||||
class FilterUnhandledEntityException(message : String) : Exception(message) |
} |
||||||
class ConfigurationException(message: String) : Exception(message) { |
|
||||||
|
|
||||||
} |
|
||||||
Loading…
Reference in new issue