FailureKind
A network failure mode an operation can be configured to simulate deterministically via OperationMockState.Failure.
Each kind mirrors the exception a real Ktor HTTP engine (OkHttp on Android, Darwin on iOS) throws for the equivalent real condition, so an app's existing error handling for that condition exercises the same code path against the simulated failure as it would against the real one. See NetworkMockPlugin's simulatedFailure in devview-networkmock-ktor.
Entries
Mirrors a connection-level I/O failure (e.g. connection refused, host unreachable).
Properties
Functions
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.)
Returns an array containing the constants of this enum type, in the order they're declared.