|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
net.sourceforge.openstego.OpenStegoException
Custom exception class for OpenStego
| Field Summary | |
static int |
CORRUPT_DATA
Error Code - Corrupt Data |
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_VALID_PLUGIN
Error Code - No valid plugin |
| Constructor Summary | |
OpenStegoException(java.lang.String namespace,
int errorCode,
java.lang.Object[] params,
java.lang.Throwable cause)
Constructor which takes object array for parameters for the message |
|
OpenStegoException(java.lang.String namespace,
int errorCode,
java.lang.String param,
java.lang.Throwable cause)
Constructor with a single parameter for the message |
|
OpenStegoException(java.lang.String namespace,
int errorCode,
java.lang.Throwable cause)
Default constructor |
|
OpenStegoException(java.lang.Throwable cause)
Constructor using default namespace for unhandled exceptions |
|
| Method Summary | |
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 |
| 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 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
| Constructor Detail |
public OpenStegoException(java.lang.Throwable cause)
cause - Original exception which caused this exception to be raised
public OpenStegoException(java.lang.String namespace,
int errorCode,
java.lang.Throwable cause)
namespace - Namespace of the errorerrorCode - Error code for the exceptioncause - Original exception which caused this exception to be raised
public OpenStegoException(java.lang.String namespace,
int errorCode,
java.lang.String param,
java.lang.Throwable cause)
namespace - Namespace of the errorerrorCode - Error code for the exceptionparam - Parameter for exception messagecause - Original exception which caused this exception to be raised
public OpenStegoException(java.lang.String namespace,
int errorCode,
java.lang.Object[] params,
java.lang.Throwable cause)
namespace - Namespace of the errorerrorCode - Error code for the exceptionparams - Parameters for exception messagecause - Original exception which caused this exception to be raised| Method Detail |
public 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 error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||