Interface LenientFallbackTrace

All Superinterfaces:
org.springframework.core.Ordered
All Known Implementing Classes:
ActuatorLenientFallbackTrace

public interface LenientFallbackTrace extends org.springframework.core.Ordered
If no DataRouteContext is set, and it is desirable for a default DataRouteSupporting to be made available, instances of this interface can be made available as bean and inspect the exception trace and respond positively if the default can be used. Note, this currently has limited support per composite routing concept.
Author:
Jeff Fischer
  • Field Summary

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    allow(Exception exception)
    Based on the exception, should the composite routing component allow a default routable component to be used.
    default int
     
  • Method Details

    • getOrder

      default int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered
    • allow

      boolean allow(Exception exception)
      Based on the exception, should the composite routing component allow a default routable component to be used.
      Parameters:
      exception - The exception that would normally be thrown if no route was available.
      Returns:
      Whether to allow a default routable component.