Enum ErrorMessage

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ErrorMessage>

    public enum ErrorMessage
    extends java.lang.Enum<ErrorMessage>
    Enum that describes error messages due the workspace
    • Enum Constant Detail

      • CONTAINER_ALREADY_EXIST

        public static final ErrorMessage CONTAINER_ALREADY_EXIST
        Container already exist
      • CONTAINER_NOT_FOUND

        public static final ErrorMessage CONTAINER_NOT_FOUND
        CONTAINER Container not found FOUND
      • FOLDER_ALREADY_EXIST

        public static final ErrorMessage FOLDER_ALREADY_EXIST
        Folder already exist
      • FOLDER_NOT_FOUND

        public static final ErrorMessage FOLDER_NOT_FOUND
        Folder not found
      • OBJECT_ALREADY_EXIST

        public static final ErrorMessage OBJECT_ALREADY_EXIST
        Object already exist
      • OBJECT_NOT_FOUND

        public static final ErrorMessage OBJECT_NOT_FOUND
        Object not found
      • STREAM_IS_NULL

        public static final ErrorMessage STREAM_IS_NULL
        Input stream is null
      • CONTAINER_NAME_IS_A_MANDATORY_PARAMETER

        public static final ErrorMessage CONTAINER_NAME_IS_A_MANDATORY_PARAMETER
        Container name is a mandatory parameter
      • CONTAINER_FOLDER_NAMES_ARE_A_MANDATORY_PARAMETER

        public static final ErrorMessage CONTAINER_FOLDER_NAMES_ARE_A_MANDATORY_PARAMETER
        Container name and Folder name are a mandatory parameter
      • CONTAINER_OBJECT_NAMES_ARE_A_MANDATORY_PARAMETER

        public static final ErrorMessage CONTAINER_OBJECT_NAMES_ARE_A_MANDATORY_PARAMETER
        Container name and Object name are a mandatory parameter
      • CONTAINER_OBJECT_NAMES_SIZE_ARE_A_MANDATORY_PARAMETER

        public static final ErrorMessage CONTAINER_OBJECT_NAMES_SIZE_ARE_A_MANDATORY_PARAMETER
        Container name, Object name and size are a mandatory parameter
      • INTERNAL_SERVER_ERROR

        public static final ErrorMessage INTERNAL_SERVER_ERROR
        Internal Server Error
      • ALGO_IS_A_MANDATORY_PARAMETER

        public static final ErrorMessage ALGO_IS_A_MANDATORY_PARAMETER
        Algo name is a mandatory parameter
      • FOLDER_OR_FILE_NAME_NOT_ALLOWED

        public static final ErrorMessage FOLDER_OR_FILE_NAME_NOT_ALLOWED
        When zip contains file or folder with not allowed name example : (test.txt#)
      • BAD_REQUEST

        public static final ErrorMessage BAD_REQUEST
        Bad Request
      • NOT_ACCEPTABLE_FILES

        public static final ErrorMessage NOT_ACCEPTABLE_FILES
        Not allowed to perform action
    • Method Detail

      • values

        public static ErrorMessage[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ErrorMessage c : ErrorMessage.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ErrorMessage valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getMessage

        public java.lang.String getMessage()
        getter for attribute message
        Returns:
        message
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<ErrorMessage>