Annotation Type ThrowWhenNoData
-
@Retention(RUNTIME) @Target(TYPE) public @interface ThrowWhenNoData
AnnotatesSequentialGetStepSupplier
and defines class of aThrowable
may be thrown when get-step returns no valuable data. All that is defined by this annotation is inherited by subclasses. Also it may be overridden in subclasses by declaration of another 'ThrowWhenNoData'
-
-
Field Summary
Fields Modifier and Type Fields Description static String
DEFAULT_MESSAGE_STARTING
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description String
startDescription
Class<? extends RuntimeException>
toThrow
-
-
-
Field Detail
-
DEFAULT_MESSAGE_STARTING
static final String DEFAULT_MESSAGE_STARTING
-
-
Element Detail
-
toThrow
Class<? extends RuntimeException> toThrow
- Returns:
- defines class of a
Throwable
may be thrown when get-step returns no valuable data.ATTENTION!!!!!
- Defined class SHOULD have declared public constructor that takes only message string
- Defined class can have declared public constructor that takes message string and
Throwable
root-cause
- Default:
- ru.tinkoff.qa.neptune.core.api.steps.NotPresentException.class
-
-
-
startDescription
String startDescription
- Default:
- "Not present:"
-
-