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 exception

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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()