Package 

Class ExceptionManageCacheImpl

    • Constructor Detail

      • ExceptionManageCacheImpl

        ExceptionManageCacheImpl(ContextProvider contextProvider)
    • Method Detail

      • storeNewException

         String storeNewException(Throwable throwable, String message)

        This method is using Synchronized block to prevent multiple threads that trying to write the same exception at the same time and loosing data (wrong counter)

        Parameters:
        throwable - {@link Throwable} to store
        message - {@link String} described the exception
      • getStoredExceptionsSize

         <ERROR CLASS> getStoredExceptionsSize()

        Return the amount of the stored exception of the current SDK version

      • deleteAllStoredExceptionsIgnoreFolders

         Boolean deleteAllStoredExceptionsIgnoreFolders(String folders)

        This method is using Synchronized block to make sure all the required files are deleted for example trying deleting while another thread is writing

        Parameters:
        folders - list of SDK version that their exceptions should not be deleted
      • deleteAllStoredExceptionsIgnoreFolders

         Unit deleteAllStoredExceptionsIgnoreFolders(Integer from, Integer to)

        Delete all the stored exception from the memory of all the SDK versions except of SDK versions range from, to that passed as an arguments for this method. For example, calling this method with "600009000, 600009999" as an argument will delete all exceptions except of exceptions from the range 6.9.0-6.9.999

        Parameters:
        from -
        • lower bound of a range, int representation if SDK version String

        to -
        • upper bound of a range, int representation if SDK version String