public class OpenStegoException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
static int |
CORRUPT_DATA
Error Code - Corrupt Data
|
static int |
IMAGE_FILE_INVALID
Error Code - Image file invalid
|
static int |
IMAGE_SIZE_MISMATCH
Error Code - Image sizes mismatch
|
static int |
IMAGE_TYPE_INVALID
Error Code - Image type invalid
|
static int |
INVALID_CRYPT_ALGO
Error Code - Invalid key name
|
static int |
INVALID_KEY_NAME
Error Code - Invalid key name
|
static int |
INVALID_PASSWORD
Error Code - Invalid password
|
static int |
INVALID_USE_COMPR_VALUE
Error Code - Invalid value for useCompression
|
static int |
INVALID_USE_ENCRYPT_VALUE
Error Code - Invalid value for useEncryption
|
static int |
NO_PLUGIN_SPECIFIED
Error Code - No plugin specified
|
static int |
NO_VALID_PLUGIN
Error Code - No valid plugin
|
static int |
OUT_OF_MEMORY
Error Code - Out of memory
|
static int |
PLUGIN_DOES_NOT_SUPPORT_DH
Error Code - Plugin does not support data hiding
|
static int |
PLUGIN_DOES_NOT_SUPPORT_WM
Error Code - Plugin does not support watermarking
|
static int |
PLUGIN_NOT_FOUND
Error Code - Plugin not found
|
static int |
PWD_MANDATORY_FOR_GENSIG
Error Code - Password is mandatory for 'gensig' operation
|
static int |
USERPREF_INVALID_BOOL
Error Code - Invalid boolean in user preference file
|
static int |
USERPREF_INVALID_FLOAT
Error Code - Invalid float in user preference file
|
static int |
USERPREF_INVALID_INT
Error Code - Invalid integer in user preference file
|
Constructor and Description |
---|
OpenStegoException(java.lang.Throwable cause)
Constructor using default namespace for unhandled exceptions
|
OpenStegoException(java.lang.Throwable cause,
java.lang.String namespace,
int errorCode)
Default constructor
|
OpenStegoException(java.lang.Throwable cause,
java.lang.String namespace,
int errorCode,
java.lang.Object... params)
Constructor which takes object array for parameters for the message
|
OpenStegoException(java.lang.Throwable cause,
java.lang.String namespace,
int errorCode,
java.lang.String param)
Constructor with a single parameter for the message
|
Modifier and Type | Method and Description |
---|---|
static void |
addErrorCode(java.lang.String namespace,
int errorCode,
java.lang.String labelKey)
Method to add new error codes to the namespace
|
int |
getErrorCode()
Get method for errorCode
|
java.lang.String |
getNamespace()
Get method for namespace
|
public static final int INVALID_PASSWORD
public static final int INVALID_USE_COMPR_VALUE
public static final int INVALID_USE_ENCRYPT_VALUE
public static final int INVALID_KEY_NAME
public static final int CORRUPT_DATA
public static final int NO_VALID_PLUGIN
public static final int IMAGE_TYPE_INVALID
public static final int IMAGE_FILE_INVALID
public static final int NO_PLUGIN_SPECIFIED
public static final int PLUGIN_DOES_NOT_SUPPORT_WM
public static final int PLUGIN_NOT_FOUND
public static final int IMAGE_SIZE_MISMATCH
public static final int OUT_OF_MEMORY
public static final int PLUGIN_DOES_NOT_SUPPORT_DH
public static final int PWD_MANDATORY_FOR_GENSIG
public static final int INVALID_CRYPT_ALGO
public static final int USERPREF_INVALID_INT
public static final int USERPREF_INVALID_FLOAT
public static final int USERPREF_INVALID_BOOL
public OpenStegoException(java.lang.Throwable cause)
cause
- Original exception which caused this exception to be raisedpublic OpenStegoException(java.lang.Throwable cause, java.lang.String namespace, int errorCode)
cause
- Original exception which caused this exception to be raisednamespace
- Namespace of the errorerrorCode
- Error code for the exceptionpublic OpenStegoException(java.lang.Throwable cause, java.lang.String namespace, int errorCode, java.lang.String param)
cause
- Original exception which caused this exception to be raisednamespace
- Namespace of the errorerrorCode
- Error code for the exceptionparam
- Parameter for exception messagepublic OpenStegoException(java.lang.Throwable cause, java.lang.String namespace, int errorCode, java.lang.Object... params)
cause
- Original exception which caused this exception to be raisednamespace
- Namespace of the errorerrorCode
- Error code for the exceptionparams
- Parameters for exception messagepublic int getErrorCode()
public java.lang.String getNamespace()
public static void addErrorCode(java.lang.String namespace, int errorCode, java.lang.String labelKey)
namespace
- Namespace for the errorerrorCode
- Error code of the errorlabelKey
- Key of the label for the errorCopyright © 2007-2021 Samir Vaidya. All Rights Reserved.