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
Modifier and TypeClassDescriptionstatic final class
Represents no serializer listener. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onBeanGetterException
(SerializerSession session, Throwable t, BeanPropertyMeta p) Called when an exception is thrown when trying to call a bean getter method.void
onError
(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.
-