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 Details

    • NO_OP

      static final ExceptionListener NO_OP
      An exception listener which does nothing.
  • Method Details

    • 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