Annotation Type JsonParsableException


  • @Target(TYPE)
    @Retention(RUNTIME)
    @IndexAnnotated
    public @interface JsonParsableException
    This annotated marks a class as deserializable from Json when calling the specified method() with JsonObject as first and DittoHeaders as second argument. The errorCode() is used as identifier of this exception.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String errorCode
      Used as identifier of the exception.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String method
      The name of the method accepting a JsonObject as first argument and DittoHeaders 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 a JsonObject as first argument and DittoHeaders as seconds argument. The Method must return an instance of the exception annotated with this annotation.
        Returns:
        the name of this method.
        Default:
        "fromJson"