Enum MemoryException.ErrorCodes

    • Enum Constant Detail

      • FAILED_TO_CREATE_COLLECTION

        public static final MemoryException.ErrorCodes FAILED_TO_CREATE_COLLECTION
        Failed to create collection.
      • FAILED_TO_DELETE_COLLECTION

        public static final MemoryException.ErrorCodes FAILED_TO_DELETE_COLLECTION
        Failed to delete collection.
      • UNABLE_TO_DESERIALIZE_METADATA

        public static final MemoryException.ErrorCodes UNABLE_TO_DESERIALIZE_METADATA
        Unable to construct memory from serialized metadata.
      • ATTEMPTED_TO_ACCESS_NONEXISTENT_COLLECTION

        public static final MemoryException.ErrorCodes ATTEMPTED_TO_ACCESS_NONEXISTENT_COLLECTION
        Attempted to access a memory collection that does not exist.
    • Method Detail

      • values

        public static MemoryException.ErrorCodes[] 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 (MemoryException.ErrorCodes c : MemoryException.ErrorCodes.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MemoryException.ErrorCodes valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getMessage

        public String getMessage()
        Gets the error message.
        Returns:
        The error message.