Package-level declarations

Types

Link copied to clipboard

Implementation of a WarningLogger printing the warnings to the console.

Link copied to clipboard
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.

Link copied to clipboard

Implementation of a WarningLogger that accumulates the warnings in a list, to be used as a convenience by third-party apps.

Link copied to clipboard
interface Warning

Represents a non-fatal warning message that can be raised by a Readium library.

Link copied to clipboard
fun interface WarningLogger

Interface to be implemented by third-party apps if they want to observe warnings raised, for example, during the parsing of a publication.

Functions

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

Raises a JsonWarning.