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 SummaryConstructors 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 SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddErrorCode(String namespace, int errorCode, String labelKey)Method to add new error codes to the namespaceintgetErrorCode()Get method for errorCodeStringgetNamespace()Get method for namespace- 
Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
- 
 
- 
- 
- 
Constructor Detail- 
OpenStegoExceptionpublic OpenStegoException(Throwable cause) Constructor using default namespace for unhandled exceptions- Parameters:
- cause- Original exception which caused this exception to be raised
 
 - 
OpenStegoExceptionpublic OpenStegoException(Throwable cause, String namespace, int errorCode) Default constructor- Parameters:
- cause- Original exception which caused this exception to be raised
- namespace- Namespace of the error
- errorCode- Error code for the exception
 
 - 
OpenStegoExceptionpublic 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 raised
- namespace- Namespace of the error
- errorCode- Error code for the exception
- param- Parameter for exception message
 
 - 
OpenStegoExceptionpublic 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 raised
- namespace- Namespace of the error
- errorCode- Error code for the exception
- params- Parameters for exception message
 
 
- 
 - 
Method Detail- 
getErrorCodepublic int getErrorCode() Get method for errorCode- Returns:
- errorCode
 
 - 
getNamespacepublic String getNamespace() Get method for namespace- Returns:
- namespace
 
 
- 
 
-