Class NotSerializableExceptionWrapper

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.elasticsearch.ElasticsearchException
org.elasticsearch.common.io.stream.NotSerializableExceptionWrapper
All Implemented Interfaces:
java.io.Serializable, Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentFragment

public final class NotSerializableExceptionWrapper
extends ElasticsearchException
This exception can be used to wrap a given, not serializable exception to serialize via StreamOutput.writeException(Throwable). This class will preserve the stacktrace as well as the suppressed exceptions of the throwable it was created with instead of it's own. The stacktrace has no indication of where this exception was created.
See Also:
Serialized Form