Class 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 code
      ImageGeneratorSDKException​(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 exception
      int getErrorCode()
      Gets the error code
      java.lang.String getErrorMessage()
      Gets the error message
      void setCause​(java.lang.Throwable cause)
      Sets the cause of the exception
      void setErrorCode​(int errorCode)
      Sets the error code
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 code
        cause - 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 class java.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