|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.eclipse.equinox.security.storage.StorageException
public final class StorageException
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.
Field Summary | |
---|---|
static int |
DECRYPTION_ERROR
Error occurred during the decryption process. |
static int |
ENCRYPTION_ERROR
Error occurred during the encryption process. |
static int |
INTERNAL_ERROR
Internal error due to a problem in setup or internal implementation. |
static int |
NO_PASSWORD
Secure preferences were unable to retrieve the password. |
static int |
NO_SECURE_MODULE
No appropriate password provider module is available. |
Constructor Summary | |
---|---|
StorageException(int errorCode,
String message)
|
|
StorageException(int errorCode,
Throwable exception)
|
Method Summary | |
---|---|
int |
getErrorCode()
|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int INTERNAL_ERROR
public static final int NO_SECURE_MODULE
public static final int ENCRYPTION_ERROR
Such error might have being created by using inappropriate key, for instance, using key that is too strong for the cryptographic policy in JVM.
public static final int DECRYPTION_ERROR
This error might be caused by an incorrect password or corrupted data.
public static final int NO_PASSWORD
Constructor Detail |
---|
public StorageException(int errorCode, Throwable exception)
public StorageException(int errorCode, String message)
Method Detail |
---|
public int getErrorCode()
|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.