-
public interface ExceptionManageCacheInterface that declare the required functionality of cache handling for exception manager module
-
-
Method Summary
Modifier and Type Method Description abstract StringstoreNewException(Throwable throwable, String message)Save a new {@link Throwable} to persistent storage abstract List<ExceptionInfo>getStoredExceptions()return all the stored exception of the current SDK version abstract IntegergetStoredExceptionsSize()Return the amount of the stored exception of the current SDK version abstract BooleandeleteAllStoredExceptions()Delete all the stored exception from the memory of all the SDK versions abstract BooleandeleteAllStoredExceptionsIgnoreFolders(String folders)Delete all the stored exception from the memory of all the SDK versions except of SDK versions that passed as an arguments for this method. abstract UnitdeleteAllStoredExceptionsIgnoreFolders(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. -
-
Method Detail
-
storeNewException
@WorkerThread() abstract String storeNewException(Throwable throwable, String message)
Save a new {@link Throwable} to persistent storage
- Parameters:
throwable- {@link Throwable} to storemessage- {@link String} described the exception
-
getStoredExceptions
@WorkerThread() abstract List<ExceptionInfo> getStoredExceptions()
return all the stored exception of the current SDK version
-
getStoredExceptionsSize
@WorkerThread() abstract Integer getStoredExceptionsSize()
Return the amount of the stored exception of the current SDK version
-
deleteAllStoredExceptions
@WorkerThread() abstract Boolean deleteAllStoredExceptions()
Delete all the stored exception from the memory of all the SDK versions
-
deleteAllStoredExceptionsIgnoreFolders
@WorkerThread() abstract Boolean deleteAllStoredExceptionsIgnoreFolders(String folders)
Delete all the stored exception from the memory of all the SDK versions except of SDK versions that passed as an arguments for this method. For example, calling this method with
"6.9.0"as an argument will delete all exceptions except of exceptions accrue on SDK v6.9.0- Parameters:
folders- list of SDK version that their exceptions should not be deleted
-
deleteAllStoredExceptionsIgnoreFolders
@WorkerThread() abstract 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
-
-
-
-