Trait grafana_plugin_sdk::backend::DataQueryError
source · 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§
Provided Methods§
sourcefn status(&self) -> DataQueryStatus
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.