public class CloudEventRWException extends RuntimeException
| Modifier and Type | Class and Description |
|---|---|
static class |
CloudEventRWException.CloudEventRWExceptionKind
The kind of error that happened while serializing/deserializing
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic CloudEventRWException.CloudEventRWExceptionKind getKind()
CloudEventRWException.CloudEventRWExceptionKind associated to this exception instance.public static CloudEventRWException newInvalidSpecVersion(String specVersion)
specVersion - the invalid input spec versionCloudEventRWException instancepublic static CloudEventRWException newInvalidAttributeName(String attributeName)
attributeName - the invalid attribute nameCloudEventRWException instancepublic static CloudEventRWException newInvalidExtensionName(String extensionName)
extensionName - the invalid extension nameCloudEventRWException instancepublic static CloudEventRWException newInvalidAttributeType(String attributeName, Class<?> clazz)
attributeName - the invalid attribute nameclazz - the type of the attributeCloudEventRWException instancepublic static CloudEventRWException newInvalidAttributeType(String attributeName, Object value)
public static CloudEventRWException newInvalidAttributeValue(String attributeName, Object value, @Nullable Throwable cause)
attributeName - the invalid attribute namevalue - the value of the attributecause - an optional cause identifying the eventual validation errorCloudEventRWException instancepublic static CloudEventRWException newInvalidDataType(String actual, String... allowed)
actual - the actual data typeallowed - the list of allowed data typesCloudEventRWException instancepublic static CloudEventRWException newDataConversion(Throwable cause, String from, String to)
cause - the cause of the conversion failurefrom - the input data typeto - the target data typeCloudEventRWException instancepublic static CloudEventRWException newUnknownEncodingException()
CloudEventRWException instance.public static CloudEventRWException newOther(Throwable cause)
Throwable in a new generic instance of this exception.cause - the cause of the exceptionCloudEventRWException instanceCopyright © 2023. All rights reserved.