Class FirstException<T extends Throwable>

java.lang.Object
com.atlassian.bamboo.utils.FirstException<T>

public class FirstException<T extends Throwable> extends Object
Remembers the first reported exception so that it can be rethrown later.
  • Constructor Details

    • FirstException

      public FirstException()
  • Method Details

    • setIfFirst

      public void setIfFirst(T e)
      Remembers the exception if none was reported so far.
    • throwIfPresent

      public void throwIfPresent() throws T
      Throws the exception if one is present.
      Throws:
      T extends Throwable