public static enum ConvertResponse.Error extends Enum<ConvertResponse.Error> implements Error
| Enum Constant and Description |
|---|
CONVERSION
Conversion error (the error code is -3).
|
DATABASE
Error while accessing the conversion result database (the error code is -6).
|
DOWNLOADING
Error while downloading the document file to be converted (the error code is -4).
|
INPUT
Input error (the error code is -7).
|
OOXML_OUTPUT_TYPE
Error automatically determine the output file format (the error code is -9).
|
PASSWORD
Incorrect password (the error code is -5).
|
SIZE_LIMIT_EXCEEDED
Size limit exceeded" (the error code is -10).
|
TIMEOUT
Conversion timeout error (the error code is -2).
|
TOKEN
Invalid token (the error code is -8).
|
UNKNOWN
Unknown error (the error code is -1).
|
| Modifier and Type | Field and Description |
|---|---|
private static Map<Integer,ConvertResponse.Error> |
BY_CODE
Defines a map of the
Error objects with the Conversion Service error codes. |
private Integer |
code
Defines the error code.
|
private String |
description
Defines the error description.
|
| Modifier and Type | Method and Description |
|---|---|
static ConvertResponse.Error |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConvertResponse.Error |
valueOfCode(Integer code)
Returns the enum constant of this type with the specified code.
|
static ConvertResponse.Error[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetCode, getDescriptionpublic static final ConvertResponse.Error UNKNOWN
public static final ConvertResponse.Error TIMEOUT
public static final ConvertResponse.Error CONVERSION
public static final ConvertResponse.Error DOWNLOADING
public static final ConvertResponse.Error PASSWORD
public static final ConvertResponse.Error DATABASE
public static final ConvertResponse.Error INPUT
public static final ConvertResponse.Error TOKEN
public static final ConvertResponse.Error OOXML_OUTPUT_TYPE
public static final ConvertResponse.Error SIZE_LIMIT_EXCEEDED
private final Integer code
private final String description
private static final Map<Integer,ConvertResponse.Error> BY_CODE
Error objects with the Conversion Service error codes.public static ConvertResponse.Error[] values()
for (ConvertResponse.Error c : ConvertResponse.Error.values()) System.out.println(c);
public static ConvertResponse.Error valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static ConvertResponse.Error valueOfCode(Integer code)
code - The code of the enum constant to be returned.Copyright © 2023–2024. All rights reserved.