pub enum Exception {
UniqueFileException,
BadCredentialsException,
CorruptUploadOpenApiException,
NoSuchFileException,
NoSuchPathException,
InvalidArgumentException,
IncompleteUploadOpenApiException,
RequestedRangeNotSatisfiedException,
}
Expand description
An exception thrown by the upstream API.
Variants§
UniqueFileException
Thrown when a file name conflict occurrs.
BadCredentialsException
Missing or invalid credentials.
CorruptUploadOpenApiException
Checksum mismatch.
NoSuchFileException
File or folder doesn’t exist.
NoSuchPathException
Unsure how this is different from NoSuchFileException
.
InvalidArgumentException
Invalid parameters (JSON body, query parameters, etc.).
IncompleteUploadOpenApiException
This exception is thrown when uploading chunked data
for some reason, along with an HTTP 420
status.
RequestedRangeNotSatisfiedException
Range not satisfiable.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Exception
impl<'de> Deserialize<'de> for Exception
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Exception
Auto Trait Implementations§
impl Freeze for Exception
impl RefUnwindSafe for Exception
impl Send for Exception
impl Sync for Exception
impl Unpin for Exception
impl UnwindSafe for Exception
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