Class Fallback.Builder<T>

    • Method Detail

      • build

        public Fallback<T> build()
        Description copied from interface: Builder
        Build the instance from this builder.
        Specified by:
        build in interface Builder<T>
        Returns:
        instance of the built type
      • applyOn

        public Fallback.Builder<T> applyOn​(Class<? extends Throwable>... classes)
        Apply fallback on these throwable classes. Cannot be combined with skipOn(Class[]).
        Parameters:
        classes - classes to fallback on
        Returns:
        updated builder instance
      • addApplyOn

        public Fallback.Builder<T> addApplyOn​(Class<? extends Throwable> clazz)
        Apply fallback on this throwable class.
        Parameters:
        clazz - class to fallback on
        Returns:
        updated builder instance
      • skipOn

        public Fallback.Builder<T> skipOn​(Class<? extends Throwable>... classes)
        Do not apply fallback on these throwable classes. Cannot be combined with applyOn(Class[]).
        Parameters:
        classes - classes not to fallback on
        Returns:
        updated builder instance
      • addSkipOn

        public Fallback.Builder<T> addSkipOn​(Class<? extends Throwable> clazz)
        Do not apply fallback on this throwable class.
        Parameters:
        clazz - class not to fallback on
        Returns:
        updated builder instance