public final class NotSerializableExceptionWrapper extends ElasticsearchException
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.ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>REST_EXCEPTION_SKIP_CAUSE, REST_EXCEPTION_SKIP_CAUSE_DEFAULT, REST_EXCEPTION_SKIP_STACK_TRACE, REST_EXCEPTION_SKIP_STACK_TRACE_DEFAULTEMPTY_PARAMS| Constructor and Description |
|---|
NotSerializableExceptionWrapper(StreamInput in) |
NotSerializableExceptionWrapper(java.lang.Throwable other) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getExceptionName() |
RestStatus |
status()
Returns the rest status code associated with this exception.
|
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
addHeader, addHeader, causeToXContent, fromXContent, getDetailedMessage, getExceptionName, getHeader, getHeaderKeys, getId, getIndex, getResourceId, getResourceType, getRootCause, getShardId, guessRootCauses, guessRootCauses, innerToXContent, isRegistered, readException, readStackTrace, renderException, renderHeader, setIndex, setIndex, setResources, setShard, setShard, toString, toXContent, toXContent, unwrapCause, writeStackTracespublic NotSerializableExceptionWrapper(java.lang.Throwable other)
public NotSerializableExceptionWrapper(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
WriteablewriteTo in interface WriteablewriteTo in class ElasticsearchExceptionjava.io.IOExceptionprotected java.lang.String getExceptionName()
getExceptionName in class ElasticsearchExceptionpublic RestStatus status()
ElasticsearchExceptionstatus in class ElasticsearchException