public class SerializerListener extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SerializerListener.Null
Represents no serializer listener.
|
Constructor and Description |
---|
SerializerListener() |
Modifier and Type | Method and Description |
---|---|
void |
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.
|
public SerializerListener()
public void onBeanGetterException(SerializerSession session, Throwable t, BeanPropertyMeta p)
session
- The serializer session.t
- The throwable that was thrown by the getter method.p
- The bean property we had an issue on.public void onError(SerializerSession session, Throwable t, String msg)
session
- The serializer session.t
- The throwable that was thrown by the getter method.msg
- The error message.Copyright © 2018 Apache. All rights reserved.