Enum PaperCreateError

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

    public enum PaperCreateError
    extends java.lang.Enum<PaperCreateError>
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static PaperCreateError valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static PaperCreateError[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • INSUFFICIENT_PERMISSIONS

        public static final PaperCreateError INSUFFICIENT_PERMISSIONS
        Your account does not have permissions to edit Paper docs.
      • CONTENT_MALFORMED

        public static final PaperCreateError CONTENT_MALFORMED
        The provided content was malformed and cannot be imported to Paper.
      • DOC_LENGTH_EXCEEDED

        public static final PaperCreateError DOC_LENGTH_EXCEEDED
        The Paper doc would be too large, split the content into multiple docs.
      • IMAGE_SIZE_EXCEEDED

        public static final PaperCreateError IMAGE_SIZE_EXCEEDED
        The imported document contains an image that is too large. The current limit is 1MB. This only applies to HTML with data URI.
      • OTHER

        public static final PaperCreateError OTHER
        Catch-all used for unknown tag values returned by the Dropbox servers.

        Receiving a catch-all value typically indicates this SDK version is not up to date. Consider updating your SDK version to handle the new tags.

      • INVALID_PATH

        public static final PaperCreateError INVALID_PATH
        The file could not be saved to the specified location.
      • EMAIL_UNVERIFIED

        public static final PaperCreateError EMAIL_UNVERIFIED
        The user's email must be verified to create Paper docs.
      • INVALID_FILE_EXTENSION

        public static final PaperCreateError INVALID_FILE_EXTENSION
        The file path must end in .paper.
      • PAPER_DISABLED

        public static final PaperCreateError PAPER_DISABLED
        Paper is disabled for your team.
    • Method Detail

      • values

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

        public static PaperCreateError 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