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 theTraceInformation
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
Fields Modifier and Type Field Description static ExceptionListener
NO_OP
An exception listener which does nothing.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
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 Detail
-
NO_OP
static final ExceptionListener NO_OP
An exception listener which does nothing.
-
-
Method Detail
-
handleMarshallingException
void handleMarshallingException(Throwable problem, Object subject)
Handle a problem marshalling the given object.- Parameters:
problem
- the problemsubject
- the object being marshalled
-
handleUnmarshallingException
void handleUnmarshallingException(Throwable problem, Class<?> subjectClass)
Handle a problem unmarshalling an object of the given class.- Parameters:
problem
- the problemsubjectClass
- the class being marshalled
-
handleUnmarshallingException
void handleUnmarshallingException(Throwable problem)
Handle a problem unmarshalling an object whose class cannot be determined.- Parameters:
problem
- the problem
-
-