pub trait DataQueryError: Error {
    // Required method
    fn ref_id(self) -> String;

    // Provided method
    fn status(&self) -> DataQueryStatus { ... }
}
Expand description

Error supertrait used in DataService::query_data.

Required Methods§

source

fn ref_id(self) -> String

Return the ref_id of the incoming query to which this error corresponds.

This allows the SDK to align queries up with any failed requests.

Provided Methods§

source

fn status(&self) -> DataQueryStatus

A suitable DataQueryStatus to represent this error.

This may be used by clients to decide how this error should be handled. For example, whether the request should be retried, treated as a client or server error, etc.

Defaults to DataQueryStatus::Unknown if not overridden.

Implementations on Foreign Types§

source§

impl DataQueryError for Infallible

Implementors§