Package org.jboss.marshalling
Interface ExceptionListener
public interface ExceptionListener
A listener for exceptions which occur during marshalling or unmarshalling. Not all protocols will support all
methods. These methods are intended for the purpose of interjecting additional debug information into the stack
trace by way of the
TraceInformation
class. The appropriate callback will be called in the event of an exception,
at every level of recursion into the marshalling or unmarshalling process.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ExceptionListener
An exception listener which does nothing. -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleMarshallingException
(Throwable problem, Object subject) Handle a problem marshalling the given object.void
handleUnmarshallingException
(Throwable problem) Handle a problem unmarshalling an object whose class cannot be determined.void
handleUnmarshallingException
(Throwable problem, Class<?> subjectClass) Handle a problem unmarshalling an object of the given class.
-
Field Details
-
NO_OP
An exception listener which does nothing.
-
-
Method Details
-
handleMarshallingException
Handle a problem marshalling the given object.- Parameters:
problem
- the problemsubject
- the object being marshalled
-
handleUnmarshallingException
Handle a problem unmarshalling an object of the given class.- Parameters:
problem
- the problemsubjectClass
- the class being marshalled
-
handleUnmarshallingException
Handle a problem unmarshalling an object whose class cannot be determined.- Parameters:
problem
- the problem
-