Package akka.javasdk.ledger
Enum Class Failure.FailureReason
- All Implemented Interfaces:
Serializable,Comparable<Failure.FailureReason>,Constable
- Enclosing class:
Failure
Why an interaction failed. A later SDK version can add values.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionReferenced content (for example an image or PDF) could not be loaded.A guardrail rejected the interaction.An internal error occurred.An MCP tool call failed.The model call itself failed.The model output could not be parsed into the expected result type.The model provider rate-limited the call.The model call timed out.A tool call failed.The runtime did not report the reason, or this version of the SDK does not know it.The interaction used a feature the model does not support. -
Method Summary
Modifier and TypeMethodDescriptionstatic Failure.FailureReasonReturns the enum constant of this class with the specified name.static Failure.FailureReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNSPECIFIED
The runtime did not report the reason, or this version of the SDK does not know it. -
MODEL
The model call itself failed. -
RATE_LIMIT
The model provider rate-limited the call. -
TIMEOUT
The model call timed out. -
UNSUPPORTED_FEATURE
The interaction used a feature the model does not support. -
INTERNAL
An internal error occurred. -
OUTPUT_PARSING
The model output could not be parsed into the expected result type. -
TOOL_CALL
A tool call failed. -
MCP_TOOL_CALL
An MCP tool call failed. -
GUARDRAIL
A guardrail rejected the interaction. -
CONTENT_LOADING
Referenced content (for example an image or PDF) could not be loaded.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-