JsonWarning

data class JsonWarning(val modelClass: Class<*>, val reason: String, val severity: Warning.SeverityLevel, val json: JSONObject? = null) : Warning

Warning raised when parsing a model object from its JSON representation fails.

Parameters

modelClass

Class of the model object to be parsed.

reason

Details about the failure.

json

Source JSONObject.

Constructors

Link copied to clipboard
constructor(modelClass: Class<*>, reason: String, severity: Warning.SeverityLevel, json: JSONObject? = null)

Properties

Link copied to clipboard
Link copied to clipboard
open override val message: String

Localized user-facing message describing the issue.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val severity: Warning.SeverityLevel

Indicates the severity level of this warning.

Link copied to clipboard
open override val tag: String

Tag used to group similar warnings together.