Mercurial > lbo > hg > async-google-apis
view async-google-apis-common/src/error.rs @ 122:779081e4efe2
gcs_example: Enable more features and encode mandatory parameters
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Sun, 25 Oct 2020 18:22:02 +0100 |
parents | 4dc7d2a7ff71 |
children | 5ce43ba206c7 |
line wrap: on
line source
#[derive(Debug)] pub enum ApiError { HTTPResponseError(hyper::StatusCode, String), RedirectError(String), InputDataError(String), DataAvailableError(String), } impl std::error::Error for ApiError {} impl std::fmt::Display for ApiError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { std::fmt::Debug::fmt(self, f) } }