Class OpenStegoException

    • 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 raised
        namespace - Namespace of the error
        errorCode - 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 raised
        namespace - Namespace of the error
        errorCode - Error code for the exception
        param - 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 raised
        namespace - Namespace of the error
        errorCode - Error code for the exception
        params - 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
      • addErrorCode

        public static void addErrorCode​(String namespace,
                                        int errorCode,
                                        String labelKey)
        Method to add new error codes to the namespace
        Parameters:
        namespace - Namespace for the error
        errorCode - Error code of the error
        labelKey - Key of the label for the error