Class NotSerializableExceptionWrapper

All Implemented Interfaces:
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