Class SerializerListener

java.lang.Object
org.apache.juneau.serializer.SerializerListener
Direct Known Subclasses:
SerializerListener.Void

public class SerializerListener extends Object
Class for listening for serialize events during a serialization.
See Also:
  • Constructor Details

  • Method Details

    • onBeanGetterException

      Called when an exception is thrown when trying to call a bean getter method.
      Parameters:
      session - The serializer session.
      t - The throwable that was thrown by the getter method.
      p - The bean property we had an issue on.
    • onError

      public void onError(SerializerSession session, Throwable t, String msg)
      Called when an error occurs during serialization but is ignored.
      Parameters:
      session - The serializer session.
      t - The throwable that was thrown by the getter method.
      msg - The error message.