枚举类 ConvertResponse.Error

java.lang.Object
java.lang.Enum<ConvertResponse.Error>
com.onlyoffice.model.convertservice.ConvertResponse.Error
所有已实现的接口:
Error, Serializable, Comparable<ConvertResponse.Error>, Constable
封闭类:
ConvertResponse

public static enum ConvertResponse.Error extends Enum<ConvertResponse.Error> implements Error
Defines the Conversion Service error codes.
  • 枚举常量详细资料

    • UNKNOWN

      public static final ConvertResponse.Error UNKNOWN
      Unknown error (the error code is -1).
    • TIMEOUT

      public static final ConvertResponse.Error TIMEOUT
      Conversion timeout error (the error code is -2).
    • CONVERSION

      public static final ConvertResponse.Error CONVERSION
      Conversion error (the error code is -3).
    • DOWNLOADING

      public static final ConvertResponse.Error DOWNLOADING
      Error while downloading the document file to be converted (the error code is -4).
    • PASSWORD

      public static final ConvertResponse.Error PASSWORD
      Incorrect password (the error code is -5).
    • DATABASE

      public static final ConvertResponse.Error DATABASE
      Error while accessing the conversion result database (the error code is -6).
    • INPUT

      public static final ConvertResponse.Error INPUT
      Input error (the error code is -7).
    • TOKEN

      public static final ConvertResponse.Error TOKEN
      Invalid token (the error code is -8).
    • OOXML_OUTPUT_TYPE

      public static final ConvertResponse.Error OOXML_OUTPUT_TYPE
      Error automatically determine the output file format (the error code is -9).
    • SIZE_LIMIT_EXCEEDED

      public static final ConvertResponse.Error SIZE_LIMIT_EXCEEDED
      Size limit exceeded" (the error code is -10).
  • 方法详细资料

    • values

      public static ConvertResponse.Error[] values()
      返回包含该枚举类的常量的数组, 顺序与声明这些常量的顺序相同
      返回:
      包含该枚举类的常量的数组,顺序与声明这些常量的顺序相同
    • valueOf

      public static ConvertResponse.Error valueOf(String name)
      返回带有指定名称的该类的枚举常量。 字符串必须与用于声明该类的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - 如果该枚举类没有带有指定名称的常量
      NullPointerException - 如果参数为空值
    • valueOfCode

      public static ConvertResponse.Error valueOfCode(Integer code)
      Returns the enum constant of this type with the specified code. The integer must match exactly a code used to declare an enum constant in this type.
      参数:
      code - The code of the enum constant to be returned.
      返回:
      The enum constant with the specified code.
    • getCode

      public Integer getCode()
      从接口复制的说明: Error
      Returns the error code.
      指定者:
      getCode 在接口中 Error
      返回:
      The error code.
    • getDescription

      public String getDescription()
      从接口复制的说明: Error
      Returns the error description.
      指定者:
      getDescription 在接口中 Error
      返回:
      The error description.