Package org.junit.runners.model
Class InitializationError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.junit.runners.model.InitializationError
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
InvalidTestClassError
public class InitializationError extends java.lang.Exception
Represents one or more problems encountered while initializing a Runner- Since:
- 4.5
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InitializationError(java.lang.String string)
Construct a newInitializationError
with one cause with messagestring
InitializationError(java.lang.Throwable error)
InitializationError(java.util.List<java.lang.Throwable> errors)
Construct a newInitializationError
with one or more errorserrors
as causes
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.Throwable>
getCauses()
Returns one or more Throwables that led to this initialization error.
-
-
-
Constructor Detail
-
InitializationError
public InitializationError(java.util.List<java.lang.Throwable> errors)
Construct a newInitializationError
with one or more errorserrors
as causes
-
InitializationError
public InitializationError(java.lang.Throwable error)
-
InitializationError
public InitializationError(java.lang.String string)
Construct a newInitializationError
with one cause with messagestring
-
-
Method Detail
-
getCauses
public java.util.List<java.lang.Throwable> getCauses()
Returns one or more Throwables that led to this initialization error.
-
-