Package com.vasco.image.exception
Class ImageGeneratorSDKException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.vasco.image.exception.ImageGeneratorSDKException
-
- All Implemented Interfaces:
java.io.Serializable
public class ImageGeneratorSDKException extends java.lang.Exception
Main class for Image Generator SDK exception.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ImageGeneratorSDKException(int errorCode)
Constructor for setting exception with this error codeImageGeneratorSDKException(int errorCode, java.lang.Throwable cause)
Constructs an exception with this error code and its main cause
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Throwable
getCause()
Gets the cause of the exceptionint
getErrorCode()
Gets the error codejava.lang.String
getErrorMessage()
Gets the error messagevoid
setCause(java.lang.Throwable cause)
Sets the cause of the exceptionvoid
setErrorCode(int errorCode)
Sets the error code
-
-
-
Constructor Detail
-
ImageGeneratorSDKException
public ImageGeneratorSDKException(int errorCode, java.lang.Throwable cause)
Constructs an exception with this error code and its main cause- Parameters:
errorCode
- The error codecause
- The main cause of the exception
-
ImageGeneratorSDKException
public ImageGeneratorSDKException(int errorCode)
Constructor for setting exception with this error code- Parameters:
errorCode
- The error code
-
-
Method Detail
-
getErrorCode
public int getErrorCode()
Gets the error code- Returns:
- The error code
-
setErrorCode
public void setErrorCode(int errorCode)
Sets the error code- Parameters:
errorCode
- The error code to set
-
getCause
public java.lang.Throwable getCause()
Gets the cause of the exception- Overrides:
getCause
in classjava.lang.Throwable
- Returns:
- The cause
-
setCause
public void setCause(java.lang.Throwable cause)
Sets the cause of the exception- Parameters:
cause
- The cause to set
-
getErrorMessage
public java.lang.String getErrorMessage()
Gets the error message- Returns:
- The error message
-
-