CodeBeamer 5.4.0.1-RC API

com.intland.codebeamer.remoting
Class ThrowableSerializer

java.lang.Object
  extended by com.caucho.hessian.io.AbstractSerializer
      extended by com.caucho.hessian.io.JavaSerializer
          extended by com.caucho.hessian.io.ThrowableSerializer
              extended by com.intland.codebeamer.remoting.ThrowableSerializer
All Implemented Interfaces:
com.caucho.hessian.io.Serializer

public class ThrowableSerializer
extends com.caucho.hessian.io.ThrowableSerializer

A special serializer for Throwables, that doesn't expose serialize nested cause. This is used to fix the situation, when the client does not have the class of the exception on the classpath (and would throw a ClassNotFoundException),then the client will be still able to retrieve the full stack trace.


Constructor Summary
ThrowableSerializer(java.lang.Class<? extends java.lang.Throwable> cl)
          Create a new ThrowableSerializer
 
Method Summary
 void writeObject(java.lang.Object obj, com.caucho.hessian.io.AbstractHessianOutput out)
           
 
Methods inherited from class com.caucho.hessian.io.JavaSerializer
getWriteReplace, writeInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThrowableSerializer

public ThrowableSerializer(java.lang.Class<? extends java.lang.Throwable> cl)
Create a new ThrowableSerializer

Parameters:
cl -
Method Detail

writeObject

public void writeObject(java.lang.Object obj,
                        com.caucho.hessian.io.AbstractHessianOutput out)
                 throws java.io.IOException
Specified by:
writeObject in interface com.caucho.hessian.io.Serializer
Overrides:
writeObject in class com.caucho.hessian.io.ThrowableSerializer
Throws:
java.io.IOException

CodeBeamer 5.4.0.1-RC API

Copyright © 2006-2009 Intland Software. All rights reserved.