RecoverableType

Enumerates the types of recoverability for errors or operations, allowing for classification and handling based on whether an error is transient and can be resolved by retrying.

The RecoverableType enum provides a way to categorize errors into three distinct categories: RECOVERABLE, UNRECOVERABLE, and UNKNOWN. This categorization is essential for implementing robust error handling and retry mechanisms in applications, ensuring that temporary issues are retried while permanent or unknown issues are handled appropriately.

See also

Entries

Link copied to clipboard

Represents an error type that indicates the operation or error can be retried.

Link copied to clipboard

Represents an error type that indicates the operation or error cannot be retried.

Link copied to clipboard

Represents an unknown type of recoverability for an error or operation. This is used when the recoverability of an error cannot be determined or is not specified.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.