JBoss Marshalling 1.3.0.CR9

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
static ExceptionListener NO_OP
          An exception listener which does nothing.
 
Method Summary
 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 problem
subject - the object being marshalled

handleUnmarshallingException

void handleUnmarshallingException(Throwable problem,
                                  Class<?> subjectClass)
Handle a problem unmarshalling an object of the given class.

Parameters:
problem - the problem
subjectClass - the class being marshalled

handleUnmarshallingException

void handleUnmarshallingException(Throwable problem)
Handle a problem unmarshalling an object whose class cannot be determined.

Parameters:
problem - the problem

JBoss Marshalling 1.3.0.CR9

Copyright © 2011 JBoss, a division of Red Hat, Inc.