enum TopicErrorKind
Why a topic operation failed.
Example:
fn describe(k: TopicErrorKind) -> str {
match k {
.Unavailable => "nothing was stored, retry"
.Unknown => "may or may not be stored"
.AccessDenied => "policy refused"
.Decode => "element has a different type"
.Other => "other"
}
}
fn main() io {
print(describe(TopicErrorKind.Unknown))
}Output
may or may not be stored
pub(api) enum TopicErrorKindSince. 1.0.0-beta
Variants
Unavailable | The store was not reachable or has no leader right now (nothing was stored). |
Unknown | The outcome is unknown: the element may or may not have been stored (publish again to be sure of at-least-once). |
AccessDenied | The policy of the topic refuses the caller. |
Decode | A stored element does not decode as the topic's type. |
Other | Any other failure. |
Defined in: std/core/topic.oxl:25