public static enum DocBuilderResponse.Error extends Enum<DocBuilderResponse.Error> implements Error
| Enum Constant and Description |
|---|
DATABASE
Error while accessing the document generation result database (the error code is -6).
|
DOWNLOADING
Error while downloading the document file to be generated (the error code is -4).
|
GENERATION
Document generation error (the error code is -3).
|
TIMEOUT
Generation 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,DocBuilderResponse.Error> |
BY_CODE
Defines a map of the
DocBuilderResponse.Error objects with the DocBuilder Service error codes. |
private Integer |
code
Defines the error code.
|
private String |
description
Defines the error description.
|
| Modifier and Type | Method and Description |
|---|---|
static DocBuilderResponse.Error |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DocBuilderResponse.Error |
valueOfCode(Integer code)
Returns the enum constant of this type with the specified code.
|
static DocBuilderResponse.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 DocBuilderResponse.Error UNKNOWN
public static final DocBuilderResponse.Error TIMEOUT
public static final DocBuilderResponse.Error GENERATION
public static final DocBuilderResponse.Error DOWNLOADING
public static final DocBuilderResponse.Error DATABASE
public static final DocBuilderResponse.Error TOKEN
private final Integer code
private final String description
private static final Map<Integer,DocBuilderResponse.Error> BY_CODE
DocBuilderResponse.Error objects with the DocBuilder Service error codes.public static DocBuilderResponse.Error[] values()
for (DocBuilderResponse.Error c : DocBuilderResponse.Error.values()) System.out.println(c);
public static DocBuilderResponse.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 DocBuilderResponse.Error valueOfCode(Integer code)
code - The code of the enum constant to be returned.Copyright © 2023–2025. All rights reserved.