pub struct HelmError {
pub code: Option<String>,
pub message: Option<String>,
pub details: Option<Vec<HelmErrorDetail>>,
pub type: Option<String>,
pub title: Option<String>,
pub status: Option<i32>,
pub detail: Option<String>,
pub instance: Option<String>,
pub trace_id: Option<String>,
pub error: Box<HelmErrorError>,
}Expand description
HelmError : The one HELM error model (target architecture §11.1), written by core/pkg/httperr for every HTTP error. It is an RFC 7807 problem (type, title, status, detail, instance, trace_id) whose extension members form a Connect error (code, message, details; https://connectrpc.com/docs/protocol/#error-end-stream). details holds one helm.errors.v1.ErrorDetail with the registered reason code and whether a retry can succeed. error repeats the message in the shape SDK releases up to v0.8.5 parse; it is deprecated and goes at the next major version.
Fields§
§code: Option<String>Connect error code: canceled, unknown, invalid_argument, deadline_exceeded, not_found, already_exists, permission_denied, resource_exhausted, failed_precondition, aborted, out_of_range, unimplemented, internal, unavailable, data_loss or unauthenticated.
message: Option<String>Human-readable error message
details: Option<Vec<HelmErrorDetail>>§type: Option<String>RFC 7807 problem type URI
title: Option<String>RFC 7807 short summary
status: Option<i32>RFC 7807 copy of the HTTP status code
detail: Option<String>RFC 7807 explanation; equal to message
instance: Option<String>RFC 7807 request path, when known
trace_id: Option<String>Request trace identifier, when known
error: Box<HelmErrorError>Implementations§
Source§impl HelmError
impl HelmError
Sourcepub fn new(error: HelmErrorError) -> HelmError
pub fn new(error: HelmErrorError) -> HelmError
The one HELM error model (target architecture §11.1), written by core/pkg/httperr for every HTTP error. It is an RFC 7807 problem (type, title, status, detail, instance, trace_id) whose extension members form a Connect error (code, message, details; https://connectrpc.com/docs/protocol/#error-end-stream). details holds one helm.errors.v1.ErrorDetail with the registered reason code and whether a retry can succeed. error repeats the message in the shape SDK releases up to v0.8.5 parse; it is deprecated and goes at the next major version.