Class StorageException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.equinox.security.storage.StorageException
- All Implemented Interfaces:
Serializable
This class describes an exception that could be produced by the secure
preferences. Depending on the error code, callers might be able to mitigate
the originating problems and re-try the operation (for instance, if incorrect
password was provided or in case a required storage module was not
available).
This class is not intended to be instantiated or extended by clients.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Error occurred during the decryption process.static final int
Error occurred during the encryption process.static final int
Internal error due to a problem in setup or internal implementation.static final int
Secure preferences were unable to retrieve the password.static final int
No appropriate password provider module is available. -
Constructor Summary
ConstructorDescriptionStorageException
(int errorCode, String message) StorageException
(int errorCode, Throwable exception) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
INTERNAL_ERROR
public static final int INTERNAL_ERRORInternal error due to a problem in setup or internal implementation.- See Also:
-
NO_SECURE_MODULE
public static final int NO_SECURE_MODULENo appropriate password provider module is available.- See Also:
-
ENCRYPTION_ERROR
public static final int ENCRYPTION_ERRORError occurred during the encryption process.Such error might have being created by using inappropriate key, for instance, using key that is too strong for the cryptographic policy in JVM.
- See Also:
-
DECRYPTION_ERROR
public static final int DECRYPTION_ERRORError occurred during the decryption process.This error might be caused by an incorrect password or corrupted data.
- See Also:
-
NO_PASSWORD
public static final int NO_PASSWORDSecure preferences were unable to retrieve the password.- See Also:
-
-
Constructor Details
-
StorageException
-
StorageException
-
-
Method Details
-
getErrorCode
public int getErrorCode()
-