Package org.apache.juneau.serializer
Class SerializerListener
java.lang.Object
org.apache.juneau.serializer.SerializerListener
- Direct Known Subclasses:
- SerializerListener.Void
Class for listening for serialize events during a serialization.
 
See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final classRepresents no serializer listener.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidonBeanGetterException(SerializerSession session, Throwable t, BeanPropertyMeta p) Called when an exception is thrown when trying to call a bean getter method.voidonError(SerializerSession session, Throwable t, String msg) Called when an error occurs during serialization but is ignored.
- 
Constructor Details- 
SerializerListenerpublic SerializerListener()
 
- 
- 
Method Details- 
onBeanGetterExceptionCalled 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.
 
- 
onErrorCalled 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.
 
 
-