Mercurial > lbo > hg > async-google-apis
view async-google-apis-common/src/error.rs @ 87:f1ab59530f8f
Slight improvement in request URL path formatting.
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Sat, 24 Oct 2020 18:14:28 +0200 |
parents | 171be899018e |
children | 4dc7d2a7ff71 |
line wrap: on
line source
#[derive(Debug)] pub enum ApiError { HTTPResponseError(hyper::StatusCode, String), RedirectError(String), InputDataError(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) } }