Class LimitException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.helidon.common.concurrency.limits.LimitException
- All Implemented Interfaces:
Serializable
A limit was reached and the submitted task cannot be executed.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLimitException(Exception cause) Deprecated, for removal: This API element is subject to removal in a future version.use constructor with a cause and outcome insteadLimitException(Exception cause, LimitAlgorithm.Outcome outcome) A new limit exception with a cause and outcome.LimitException(String message) Deprecated, for removal: This API element is subject to removal in a future version.use constructor with a message and outcome insteadLimitException(String message, LimitAlgorithm.Outcome outcome) A new limit exception with a message and outcome. -
Method Summary
Modifier and TypeMethodDescriptionoutcome()Outcome of the algorithm that caused this limit exception.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LimitException
Deprecated, for removal: This API element is subject to removal in a future version.use constructor with a cause and outcome insteadA new limit exception with a cause.- Parameters:
cause- cause of the limit reached
-
LimitException
A new limit exception with a cause and outcome.- Parameters:
cause- cause of the limit reachedoutcome- outcome of the algorithm
-
LimitException
Deprecated, for removal: This API element is subject to removal in a future version.use constructor with a message and outcome insteadA new limit exception with a message.- Parameters:
message- description of why the limit was reached
-
LimitException
A new limit exception with a message and outcome.- Parameters:
message- description of why the limit was reachedoutcome- outcome of the algorithm
-
-
Method Details
-
outcome
Outcome of the algorithm that caused this limit exception.- Returns:
- outcome associated with this exception, never null
-