pub enum CreateError {
BadRequest(Vec<BadRequestError>),
Forbidden,
NotFound,
Unreachable(String),
ParseError(String),
UnexpectedResponse(String),
}Expand description
Represents the various errors that can be obtained after a create request.
Variants§
BadRequest(Vec<BadRequestError>)
Communication with the PocketBase API was successful,
but returned a 400 Bad Request HTTP error response.
Missing required value. PocketBase.
Forbidden
Communication with the PocketBase API was successful,
but returned a 403 Forbidden HTTP error response.
You are not allowed to perform this request.
NotFound
Communication with the PocketBase API was successful,
but returned a 404 Not Found HTTP error response.
The requested resource wasn’t found. Missing collection context.
Unreachable(String)
Communication with the PocketBase API failed.
This could be caused by an internet outage, an error in the link given to the PocketBase SDK
and similar errors.
ParseError(String)
The response could not be parsed into the expected data structure.
UnexpectedResponse(String)
An unexpected error occurred.
The response from the PocketBase instance API was unexpected.
If you think its an error, please open an issue on GitHub.
Trait Implementations§
Source§impl Debug for CreateError
impl Debug for CreateError
Source§impl Display for CreateError
impl Display for CreateError
Source§impl Error for CreateError
impl Error for CreateError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl Freeze for CreateError
impl RefUnwindSafe for CreateError
impl Send for CreateError
impl Sync for CreateError
impl Unpin for CreateError
impl UnwindSafe for CreateError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.