Package org.eclipse.ditto.signals.base
Class GlobalErrorRegistry
- java.lang.Object
-
- org.eclipse.ditto.signals.base.AbstractJsonParsableRegistry<T>
-
- org.eclipse.ditto.signals.base.AbstractGlobalJsonParsableRegistry<org.eclipse.ditto.model.base.exceptions.DittoRuntimeException,org.eclipse.ditto.model.base.json.JsonParsableException>
-
- org.eclipse.ditto.signals.base.GlobalErrorRegistry
-
- All Implemented Interfaces:
ErrorRegistry<org.eclipse.ditto.model.base.exceptions.DittoRuntimeException>
,JsonParsable<org.eclipse.ditto.model.base.exceptions.DittoRuntimeException>
,JsonParsableRegistry<org.eclipse.ditto.model.base.exceptions.DittoRuntimeException>
@Immutable public final class GlobalErrorRegistry extends AbstractGlobalJsonParsableRegistry<org.eclipse.ditto.model.base.exceptions.DittoRuntimeException,org.eclipse.ditto.model.base.json.JsonParsableException> implements ErrorRegistry<org.eclipse.ditto.model.base.exceptions.DittoRuntimeException>
Contains all strategies to deserialize subclasses ofDittoRuntimeException
from a combination ofJsonObject
andDittoHeaders
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.ditto.signals.base.JsonParsable
JsonParsable.ParseInnerJson
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GlobalErrorRegistry
getInstance()
Gets an instance of GlobalErrorRegistry.protected String
resolveType(org.eclipse.ditto.json.JsonObject jsonObject)
Function that resolves the type out of the given JSON object.-
Methods inherited from class org.eclipse.ditto.signals.base.AbstractJsonParsableRegistry
getTypes, parse, parse, parse
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.ditto.signals.base.JsonParsable
parse, parse, parse
-
Methods inherited from interface org.eclipse.ditto.signals.base.JsonParsableRegistry
getTypes
-
-
-
-
Method Detail
-
getInstance
public static GlobalErrorRegistry getInstance()
Gets an instance of GlobalErrorRegistry.- Returns:
- the instance.
-
resolveType
protected String resolveType(org.eclipse.ditto.json.JsonObject jsonObject)
Description copied from class:AbstractJsonParsableRegistry
Function that resolves the type out of the given JSON object.- Specified by:
resolveType
in classAbstractJsonParsableRegistry<org.eclipse.ditto.model.base.exceptions.DittoRuntimeException>
- Parameters:
jsonObject
- the JSON object to resolve the type from.- Returns:
- the resolved type.
-
-