Class LimitException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.helidon.common.concurrency.limits.LimitException
All Implemented Interfaces:
Serializable

public class LimitException extends RuntimeException
A limit was reached and the submitted task cannot be executed.
See Also:
  • Constructor Details

    • LimitException

      @Deprecated(forRemoval=true, since="27.0.0") public LimitException(Exception cause)
      Deprecated, for removal: This API element is subject to removal in a future version.
      use constructor with a cause and outcome instead
      A new limit exception with a cause.
      Parameters:
      cause - cause of the limit reached
    • LimitException

      public LimitException(Exception cause, LimitAlgorithm.Outcome outcome)
      A new limit exception with a cause and outcome.
      Parameters:
      cause - cause of the limit reached
      outcome - outcome of the algorithm
    • LimitException

      @Deprecated(forRemoval=true, since="27.0.0") public LimitException(String message)
      Deprecated, for removal: This API element is subject to removal in a future version.
      use constructor with a message and outcome instead
      A new limit exception with a message.
      Parameters:
      message - description of why the limit was reached
    • LimitException

      public LimitException(String message, LimitAlgorithm.Outcome outcome)
      A new limit exception with a message and outcome.
      Parameters:
      message - description of why the limit was reached
      outcome - outcome of the algorithm
  • Method Details

    • outcome

      public LimitAlgorithm.Outcome outcome()
      Outcome of the algorithm that caused this limit exception.
      Returns:
      outcome associated with this exception, never null