com.intland.codebeamer.remoting
Class ThrowableSerializer
java.lang.Object
com.caucho.hessian.io.AbstractSerializer
com.caucho.hessian.io.JavaSerializer
com.caucho.hessian.io.ThrowableSerializer
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 |
ThrowableSerializer
public ThrowableSerializer(java.lang.Class<? extends java.lang.Throwable> cl)
- Create a new ThrowableSerializer
- Parameters:
cl
-
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
Copyright © 2006-2009 Intland Software. All rights reserved.