pub struct HiveErrorDetailV1 {Show 23 fields
pub code: HiveErrorCode,
pub message: String,
pub retry_after_s: Option<u64>,
pub limit: Option<u64>,
pub used: Option<u64>,
pub resource: Option<String>,
pub reset_at: Option<String>,
pub cooldown_days: Option<u32>,
pub member: Option<String>,
pub level: Option<String>,
pub action: Option<String>,
pub expected: Option<u64>,
pub actual: Option<u64>,
pub min_instance: Option<String>,
pub kind: Option<HiveUploadKind>,
pub reason: Option<String>,
pub field: Option<String>,
pub number: Option<u64>,
pub check: Option<String>,
pub role: Option<String>,
pub agent_role: Option<String>,
pub feature: Option<String>,
pub plan_needed: Option<String>,
}Expand description
The error object.
Fields§
§code: HiveErrorCode§message: StringHuman-readable, safe to show; never contains secrets or tokens.
retry_after_s: Option<u64>§limit: Option<u64>instance_limit: seats in the plan; quota_exceeded: the quota
(bytes for transfer_bytes, so wider than 32 bits).
used: Option<u64>instance_limit: seats in use; quota_exceeded: what is used.
resource: Option<String>quota_exceeded: the quota (registered_instances, private_vaults,
transfer_bytes, bus_messages, or one a newer Hive adds).
reset_at: Option<String>quota_exceeded: when it frees (RFC 3339; null when nothing frees
by itself).
cooldown_days: Option<u32>quota_exceeded registered_instances: the Personal slot cool-down.
member: Option<String>policy_denied: the dotted member path that refused.
level: Option<String>policy_denied: the outermost level whose document refuses.
action: Option<String>policy_denied of consent_required_for: the action.
expected: Option<u64>revision_conflict: revision the client expected.
actual: Option<u64>revision_conflict: current revision.
min_instance: Option<String>upgrade_required: lowest engine version accepted.
kind: Option<HiveUploadKind>upload_disabled: which upload the organization switched off.
reason: Option<String>1.5: machine-readable detail of the code ([a-z_], ≤ 64), e.g.
required.
field: Option<String>1.5: the request field the error is about (invalid_request).
number: Option<u64>1.6: the proposal an error is about (proposal_state, not_found).
check: Option<String>not_permitted (Hive task #17): the check that failed, presence
(the agent has no live presence on the bus) or role (present in
another role).
role: Option<String>not_permitted: the task’s role.
agent_role: Option<String>not_permitted with check: role: the role the agent is present in.
feature: Option<String>2.x plan_required: the feature the plan lacks (repos,
internal_vaults, …; absent from a 1.x Hive, where it means Hive
itself). limit/used carry a counted feature’s numbers.
plan_needed: Option<String>2.x plan_required: the lowest plan that includes feature
(pro, team, enterprise).
Implementations§
Source§impl HiveErrorDetailV1
impl HiveErrorDetailV1
Sourcepub fn new(code: HiveErrorCode, message: impl Into<String>) -> Self
pub fn new(code: HiveErrorCode, message: impl Into<String>) -> Self
An error with only code and message.