Class ObjectWriterException

java.lang.Object
com.alibaba.fastjson2.writer.ObjectWriterAdapter<Exception>
com.alibaba.fastjson2.writer.ObjectWriterException
All Implemented Interfaces:
ObjectWriter<Exception>

public class ObjectWriterException extends ObjectWriterAdapter<Exception>
  • Constructor Details

    • ObjectWriterException

      public ObjectWriterException(Class objectType, long features, List<FieldWriter> fieldWriters)
  • Method Details

    • writeJSONB

      public void writeJSONB(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features)
      Description copied from interface: ObjectWriter
      Writes an object to the JSONWriter in JSONB format.
      Specified by:
      writeJSONB in interface ObjectWriter<Exception>
      Overrides:
      writeJSONB in class ObjectWriterAdapter<Exception>
      Parameters:
      jsonWriter - the JSONWriter to which the object should be written
      object - the object to write
      fieldName - the name of the field being written
      fieldType - the type of the field being written
      features - the features to use for writing
    • write

      public void write(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features)
      Description copied from interface: ObjectWriter
      Writes an object to the JSONWriter with the given field name, field type, and features.
      Specified by:
      write in interface ObjectWriter<Exception>
      Overrides:
      write in class ObjectWriterAdapter<Exception>
      Parameters:
      jsonWriter - the JSONWriter to which the object should be written
      object - the object to write
      fieldName - the name of the field being written
      fieldType - the type of the field being written
      features - the features to use for writing