Package com.openstego.desktop
Class OpenStegoException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.openstego.desktop.OpenStegoException
-
- All Implemented Interfaces:
Serializable
public class OpenStegoException extends Exception
Custom exception class for OpenStego- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OpenStegoException(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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
addErrorCode(String namespace, int errorCode, String labelKey)
Method to add new error codes to the namespaceint
getErrorCode()
Get method for errorCodeString
getNamespace()
Get method for namespace-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
OpenStegoException
public OpenStegoException(Throwable cause)
Constructor using default namespace for unhandled exceptions- Parameters:
cause
- Original exception which caused this exception to be raised
-
OpenStegoException
public OpenStegoException(Throwable cause, String namespace, int errorCode)
Default constructor- Parameters:
cause
- Original exception which caused this exception to be raisednamespace
- Namespace of the errorerrorCode
- Error code for the exception
-
OpenStegoException
public OpenStegoException(Throwable cause, String namespace, int errorCode, String param)
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
public OpenStegoException(Throwable cause, String namespace, int errorCode, Object... params)
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 Detail
-
getErrorCode
public int getErrorCode()
Get method for errorCode- Returns:
- errorCode
-
getNamespace
public String getNamespace()
Get method for namespace- Returns:
- namespace
-
-