pub struct UnstablePublicApiError {
pub message: String,
pub code: UnstablePublicApiErrorCode,
pub details: Option<Box<UnstablePublicApiErrorDetails>>,
}Expand description
UnstablePublicApiError : Standard error envelope for the unstable evaluators API. Response handling guidance: - Use the HTTP status code for the broad class of failure. - Use code for precise branching in SDKs, CLIs, or agents. - Inspect details for field-level validation context such as invalid filter values, malformed JSONPath expressions, or missing variable mappings. - Retry only after fixing the specific issue described by code and details.
Fields§
§message: StringHuman-readable description of the failure.
code: UnstablePublicApiErrorCode§details: Option<Box<UnstablePublicApiErrorDetails>>Implementations§
Source§impl UnstablePublicApiError
impl UnstablePublicApiError
Sourcepub fn builder() -> UnstablePublicApiErrorBuilder
pub fn builder() -> UnstablePublicApiErrorBuilder
Create an instance of UnstablePublicApiError using the builder syntax
Source§impl UnstablePublicApiError
impl UnstablePublicApiError
Sourcepub fn new(
message: String,
code: UnstablePublicApiErrorCode,
) -> UnstablePublicApiError
pub fn new( message: String, code: UnstablePublicApiErrorCode, ) -> UnstablePublicApiError
Standard error envelope for the unstable evaluators API. Response handling guidance: - Use the HTTP status code for the broad class of failure. - Use code for precise branching in SDKs, CLIs, or agents. - Inspect details for field-level validation context such as invalid filter values, malformed JSONPath expressions, or missing variable mappings. - Retry only after fixing the specific issue described by code and details.
Trait Implementations§
Source§impl Clone for UnstablePublicApiError
impl Clone for UnstablePublicApiError
Source§fn clone(&self) -> UnstablePublicApiError
fn clone(&self) -> UnstablePublicApiError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more