Annotation Type JsonParsableException
-
@Target(TYPE) @Retention(RUNTIME) @IndexAnnotated public @interface JsonParsableException
This annotated marks a class as deserializable from Json when calling the specifiedmethod()
withJsonObject
as first andDittoHeaders
as second argument. TheerrorCode()
is used as identifier of this exception.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description String
method
The name of the method accepting aJsonObject
as first argument andDittoHeaders
as seconds argument.
-
-
-
Element Detail
-
errorCode
String errorCode
Used as identifier of the exception.- Returns:
- the error code.
-
-
-
method
String method
The name of the method accepting aJsonObject
as first argument andDittoHeaders
as seconds argument. The Method must return an instance of the exception annotated with this annotation.- Returns:
- the name of this method.
- Default:
- "fromJson"
-
-