Annotation Type ThrowWhenNoData


  • @Retention(RUNTIME)
    @Target(TYPE)
    public @interface ThrowWhenNoData
    Annotates SequentialGetStepSupplier and defines class of a Throwable 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 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:"