Package org.elasticsearch.index.translog
Class TragicExceptionHolder
java.lang.Object
org.elasticsearch.index.translog.TragicExceptionHolder
public class TragicExceptionHolder
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description TragicExceptionHolder()
-
Method Summary
Modifier and Type Method Description java.lang.Exception
get()
void
setTragicException(java.lang.Exception ex)
Sets the tragic exception or if the tragic exception is already set adds passed exception as suppressed exceptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
TragicExceptionHolder
public TragicExceptionHolder()
-
-
Method Details
-
setTragicException
public void setTragicException(java.lang.Exception ex)Sets the tragic exception or if the tragic exception is already set adds passed exception as suppressed exception- Parameters:
ex
- tragic exception to set
-
get
public java.lang.Exception get()
-