Module io.cloudevents.api
Package io.cloudevents.rw
Enum Class CloudEventRWException.CloudEventRWExceptionKind
java.lang.Object
java.lang.Enum<CloudEventRWException.CloudEventRWExceptionKind>
io.cloudevents.rw.CloudEventRWException.CloudEventRWExceptionKind
- All Implemented Interfaces:
Serializable,Comparable<CloudEventRWException.CloudEventRWExceptionKind>,Constable
- Enclosing class:
- CloudEventRWException
public static enum CloudEventRWException.CloudEventRWExceptionKind
extends Enum<CloudEventRWException.CloudEventRWExceptionKind>
The kind of error that happened while serializing/deserializing
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionError while converting CloudEventData.The attribute name is not a valid/known context attribute.The attribute/extension type is not valid.The attribute/extension value is not valid.The data type is not valid.The extension name is not valid because it doesn't follow the naming convention enforced by the CloudEvents spec.Spec version string is not recognized by this particular SDK version.Other error.Invalid content type or spec version -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INVALID_SPEC_VERSION
Spec version string is not recognized by this particular SDK version. -
INVALID_ATTRIBUTE_NAME
The attribute name is not a valid/known context attribute. -
INVALID_EXTENSION_NAME
The extension name is not valid because it doesn't follow the naming convention enforced by the CloudEvents spec.- See Also:
-
INVALID_ATTRIBUTE_TYPE
The attribute/extension type is not valid. -
INVALID_ATTRIBUTE_VALUE
The attribute/extension value is not valid. -
INVALID_DATA_TYPE
The data type is not valid. -
DATA_CONVERSION
Error while converting CloudEventData. -
UNKNOWN_ENCODING
Invalid content type or spec version -
OTHER
Other error.
-
-
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
-