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 Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents no serializer listener. -
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
SerializerListener
public SerializerListener()
-
-
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
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.
-