Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.equinox.security.storage
Class StorageException


java.lang.Object
  extended by 

java.lang.Throwable
      extended by 

java.lang.Exception
          extended by 
org.eclipse.equinox.security.storage.StorageException
All Implemented Interfaces:
Serializable

public final class StorageException
extends Exception

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:
Serialized Form
Restriction:
This class is not intended to be subclassed 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

INTERNAL_ERROR

public static final int INTERNAL_ERROR
Internal error due to a problem in setup or internal implementation.

See Also:
Constant Field Values

NO_SECURE_MODULE

public static final int NO_SECURE_MODULE
No appropriate password provider module is available.

See Also:
Constant Field Values

ENCRYPTION_ERROR

public static final int ENCRYPTION_ERROR
Error 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:
Constant Field Values

DECRYPTION_ERROR

public static final int DECRYPTION_ERROR
Error occurred during the decryption process.

This error might be caused by an incorrect password or corrupted data.

See Also:
Constant Field Values

NO_PASSWORD

public static final int NO_PASSWORD
Secure preferences were unable to retrieve the password.

See Also:
Constant Field Values
Constructor Detail

StorageException

public StorageException(int errorCode,
                        
Throwable exception)

StorageException

public StorageException(int errorCode,
                        
String message)
Method Detail

getErrorCode

public int getErrorCode()

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire