Class 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 of DittoRuntimeException from a combination of JsonObject and DittoHeaders.
    • 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 class AbstractJsonParsableRegistry<org.eclipse.ditto.model.base.exceptions.DittoRuntimeException>
        Parameters:
        jsonObject - the JSON object to resolve the type from.
        Returns:
        the resolved type.