-
- All Implemented Interfaces:
-
org.readium.r2.shared.util.logging.Warning
public final class JsonWarning implements Warning
Warning raised when parsing a model object from its JSON representation fails.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringtagprivate final Stringmessageprivate final Class<?>modelClassprivate final Stringreasonprivate final Warning.SeverityLevelseverityprivate final JSONObjectjson
-
Constructor Summary
Constructors Constructor Description JsonWarning(Class<?> modelClass, String reason, Warning.SeverityLevel severity, JSONObject json)
-
Method Summary
Modifier and Type Method Description StringgetTag()Tag used to group similar warnings together. StringgetMessage()Localized user-facing message describing the issue. final Class<?>getModelClass()final StringgetReason()Warning.SeverityLevelgetSeverity()Indicates the severity level of this warning. final JSONObjectgetJson()-
-
Constructor Detail
-
JsonWarning
JsonWarning(Class<?> modelClass, String reason, Warning.SeverityLevel severity, JSONObject json)
- Parameters:
modelClass- Class of the model object to be parsed.reason- Details about the failure.json- Source JSONObject.
-
-
Method Detail
-
getMessage
String getMessage()
Localized user-facing message describing the issue.
-
getModelClass
final Class<?> getModelClass()
-
getSeverity
Warning.SeverityLevel getSeverity()
Indicates the severity level of this warning.
-
getJson
final JSONObject getJson()
-
-
-
-