#[non_exhaustive]pub enum ApiError {
Io(Error),
Http(HttpError),
Json(Error),
Kintone(KintoneError),
}Expand description
The main error type for all Kintone API operations.
This enum represents all possible errors that can occur when interacting with the Kintone API. It categorizes errors into I/O errors (network issues, connection problems) and HTTP errors (API-specific error responses).
§Variants
Io- I/O related errors such as network connectivity issuesHttp- HTTP-specific errors with status codes and response bodies
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Error for ApiError
impl Error for ApiError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<KintoneError> for ApiError
impl From<KintoneError> for ApiError
Source§fn from(source: KintoneError) -> Self
fn from(source: KintoneError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ApiError
impl !UnwindSafe for ApiError
impl Freeze for ApiError
impl Send for ApiError
impl Sync for ApiError
impl Unpin for ApiError
impl UnsafeUnpin for ApiError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more