Class InitializationError

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.junit.runners.model.InitializationError
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InvalidTestClassError

public class InitializationError extends Exception
Represents one or more problems encountered while initializing a Runner
Since:
4.5
See Also:
  • Field Details

  • Constructor Details

    • InitializationError

      public InitializationError(List<Throwable> errors)
      Construct a new InitializationError with one or more errors errors as causes
    • InitializationError

      public InitializationError(Throwable error)
    • InitializationError

      public InitializationError(String string)
      Construct a new InitializationError with one cause with message string
  • Method Details

    • getCauses

      public List<Throwable> getCauses()
      Returns one or more Throwables that led to this initialization error.