Enum Class DocumentErrorReason
- All Implemented Interfaces:
Serializable,Comparable<DocumentErrorReason>,Constable
The reasons why
PdfViewer could not load a document, see
PdfViewer.DocumentErrorEvent.- Since:
- 25.4
- Author:
- Vaadin Ltd
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentErrorReasonReturns the enum constant of this class with the specified name.static DocumentErrorReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NETWORK
The document could not be fetched, for example because the URL does not exist or the server responded with an error. -
INVALID
The data is not a valid PDF document. -
PASSWORD
The document needs a password to open. Password-protected documents are not supported.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-