Class OpenStegoException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.openstego.desktop.OpenStegoException
- All Implemented Interfaces:
Serializable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Error Code - Corrupt Datastatic final int
Error Code - Image file invalidstatic final int
Error Code - Image sizes mismatchstatic final int
Error Code - Image type invalidstatic final int
Error Code - Invalid key namestatic final int
Error Code - Invalid key namestatic final int
Error Code - Invalid passwordstatic final int
Error Code - Invalid value for useCompressionstatic final int
Error Code - Invalid value for useEncryptionstatic final int
Error Code - No plugin specifiedstatic final int
Error Code - No valid pluginstatic final int
Error Code - Out of memorystatic final int
Error Code - Plugin does not support data hidingstatic final int
Error Code - Plugin does not support watermarkingstatic final int
Error Code - Plugin not foundstatic final int
Error Code - Password is mandatory for 'gensig' operationstatic final int
Error Code - Invalid boolean in user preference filestatic final int
Error Code - Invalid float in user preference filestatic final int
Error Code - Invalid integer in user preference file -
Constructor Summary
ConstructorsConstructorDescriptionOpenStegoException
(Throwable cause) Constructor using default namespace for unhandled exceptionsOpenStegoException
(Throwable cause, String namespace, int errorCode) Default constructorOpenStegoException
(Throwable cause, String namespace, int errorCode, Object... params) Constructor which takes object array for parameters for the messageOpenStegoException
(Throwable cause, String namespace, int errorCode, String param) Constructor with a single parameter for the message -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addErrorCode
(String namespace, int errorCode, String labelKey) Method to add new error codes to the namespaceint
Get method for errorCodeGet method for namespaceMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
INVALID_PASSWORD
public static final int INVALID_PASSWORDError Code - Invalid password- See Also:
-
INVALID_USE_COMPR_VALUE
public static final int INVALID_USE_COMPR_VALUEError Code - Invalid value for useCompression- See Also:
-
INVALID_USE_ENCRYPT_VALUE
public static final int INVALID_USE_ENCRYPT_VALUEError Code - Invalid value for useEncryption- See Also:
-
INVALID_KEY_NAME
public static final int INVALID_KEY_NAMEError Code - Invalid key name- See Also:
-
CORRUPT_DATA
public static final int CORRUPT_DATAError Code - Corrupt Data- See Also:
-
NO_VALID_PLUGIN
public static final int NO_VALID_PLUGINError Code - No valid plugin- See Also:
-
IMAGE_TYPE_INVALID
public static final int IMAGE_TYPE_INVALIDError Code - Image type invalid- See Also:
-
IMAGE_FILE_INVALID
public static final int IMAGE_FILE_INVALIDError Code - Image file invalid- See Also:
-
NO_PLUGIN_SPECIFIED
public static final int NO_PLUGIN_SPECIFIEDError Code - No plugin specified- See Also:
-
PLUGIN_DOES_NOT_SUPPORT_WM
public static final int PLUGIN_DOES_NOT_SUPPORT_WMError Code - Plugin does not support watermarking- See Also:
-
PLUGIN_NOT_FOUND
public static final int PLUGIN_NOT_FOUNDError Code - Plugin not found- See Also:
-
IMAGE_SIZE_MISMATCH
public static final int IMAGE_SIZE_MISMATCHError Code - Image sizes mismatch- See Also:
-
OUT_OF_MEMORY
public static final int OUT_OF_MEMORYError Code - Out of memory- See Also:
-
PLUGIN_DOES_NOT_SUPPORT_DH
public static final int PLUGIN_DOES_NOT_SUPPORT_DHError Code - Plugin does not support data hiding- See Also:
-
PWD_MANDATORY_FOR_GENSIG
public static final int PWD_MANDATORY_FOR_GENSIGError Code - Password is mandatory for 'gensig' operation- See Also:
-
INVALID_CRYPT_ALGO
public static final int INVALID_CRYPT_ALGOError Code - Invalid key name- See Also:
-
USERPREF_INVALID_INT
public static final int USERPREF_INVALID_INTError Code - Invalid integer in user preference file- See Also:
-
USERPREF_INVALID_FLOAT
public static final int USERPREF_INVALID_FLOATError Code - Invalid float in user preference file- See Also:
-
USERPREF_INVALID_BOOL
public static final int USERPREF_INVALID_BOOLError Code - Invalid boolean in user preference file- See Also:
-
-
Constructor Details
-
OpenStegoException
Constructor using default namespace for unhandled exceptions- Parameters:
cause
- Original exception which caused this exception to be raised
-
OpenStegoException
-
OpenStegoException
Constructor with a single parameter for the message- Parameters:
cause
- Original exception which caused this exception to be raisednamespace
- Namespace of the errorerrorCode
- Error code for the exceptionparam
- Parameter for exception message
-
OpenStegoException
Constructor which takes object array for parameters for the message- Parameters:
cause
- Original exception which caused this exception to be raisednamespace
- Namespace of the errorerrorCode
- Error code for the exceptionparams
- Parameters for exception message
-
-
Method Details
-
getErrorCode
public int getErrorCode()Get method for errorCode- Returns:
- errorCode
-
getNamespace
-
addErrorCode
-