pub enum OxenError {
Show 66 variants
UserConfigNotFound(Box<StringError>),
RepoNotFound(Box<RepoNew>),
LocalRepoNotFound(Box<PathBufError>),
RepoAlreadyExists(Box<RepoNew>),
RepoAlreadyExistsAtDestination(Box<StringError>),
InvalidRepoName(StringError),
ForkStatusNotFound(StringError),
RemoteRepoNotFound(Box<Remote>),
RemoteAheadOfLocal(StringError),
IncompleteLocalHistory(StringError),
RemoteBranchLocked(StringError),
UpstreamMergeConflict(StringError),
BranchNotFound(Box<StringError>),
RevisionNotFound(Box<StringError>),
RootCommitDoesNotMatch(Box<Commit>),
NothingToCommit(StringError),
NoCommitsFound(StringError),
HeadNotFound(StringError),
WorkspaceNotFound(Box<StringError>),
QueryableWorkspaceNotFound(),
WorkspaceBehind(Box<Workspace>),
ResourceNotFound(StringError),
PathDoesNotExist(Box<PathBufError>),
ParsedResourceNotFound(Box<PathBufError>),
MigrationRequired(StringError),
OxenUpdateRequired(StringError),
InvalidVersion(StringError),
CommitEntryNotFound(StringError),
InvalidSchema(Box<Schema>),
IncompatibleSchemas(Box<Schema>),
InvalidFileType(StringError),
ColumnNameAlreadyExists(StringError),
ColumnNameNotFound(StringError),
UnsupportedOperation(StringError),
ImageMetadataParseError(StringError),
ThumbnailingNotEnabled(StringError),
SQLParseError(StringError),
NoRowsFound(StringError),
OperationCancelled(StringError),
StripPrefixError(StringError),
DataFrameError(StringError),
ImportFileError(StringError),
IO(Error),
Authentication(StringError),
ArrowError(ArrowError),
BinCodeError(Error),
TomlSer(Error),
TomlDe(Error),
URI(InvalidUri),
URL(ParseError),
JSON(Error),
HTTP(Error),
UTF8Error(Utf8Error),
DB(Error),
DUCKDB(Error),
ENV(VarError),
ImageError(ImageError),
RedisError(RedisError),
R2D2Error(Error),
JwalkError(Error),
PatternError(PatternError),
GlobError(GlobError),
PolarsError(PolarsError),
ParseIntError(ParseIntError),
RmpDecodeError(Error),
Basic(StringError),
}Variants§
UserConfigNotFound(Box<StringError>)
Internal Oxen Errors
RepoNotFound(Box<RepoNew>)
LocalRepoNotFound(Box<PathBufError>)
RepoAlreadyExists(Box<RepoNew>)
RepoAlreadyExistsAtDestination(Box<StringError>)
InvalidRepoName(StringError)
ForkStatusNotFound(StringError)
RemoteRepoNotFound(Box<Remote>)
RemoteAheadOfLocal(StringError)
IncompleteLocalHistory(StringError)
RemoteBranchLocked(StringError)
UpstreamMergeConflict(StringError)
BranchNotFound(Box<StringError>)
RevisionNotFound(Box<StringError>)
RootCommitDoesNotMatch(Box<Commit>)
NothingToCommit(StringError)
NoCommitsFound(StringError)
HeadNotFound(StringError)
WorkspaceNotFound(Box<StringError>)
QueryableWorkspaceNotFound()
WorkspaceBehind(Box<Workspace>)
ResourceNotFound(StringError)
PathDoesNotExist(Box<PathBufError>)
ParsedResourceNotFound(Box<PathBufError>)
MigrationRequired(StringError)
OxenUpdateRequired(StringError)
InvalidVersion(StringError)
CommitEntryNotFound(StringError)
InvalidSchema(Box<Schema>)
IncompatibleSchemas(Box<Schema>)
InvalidFileType(StringError)
ColumnNameAlreadyExists(StringError)
ColumnNameNotFound(StringError)
UnsupportedOperation(StringError)
ImageMetadataParseError(StringError)
ThumbnailingNotEnabled(StringError)
SQLParseError(StringError)
NoRowsFound(StringError)
OperationCancelled(StringError)
StripPrefixError(StringError)
DataFrameError(StringError)
ImportFileError(StringError)
IO(Error)
Authentication(StringError)
ArrowError(ArrowError)
BinCodeError(Error)
TomlSer(Error)
TomlDe(Error)
URI(InvalidUri)
URL(ParseError)
JSON(Error)
HTTP(Error)
UTF8Error(Utf8Error)
DB(Error)
DUCKDB(Error)
ENV(VarError)
ImageError(ImageError)
RedisError(RedisError)
R2D2Error(Error)
JwalkError(Error)
PatternError(PatternError)
GlobError(GlobError)
PolarsError(PolarsError)
ParseIntError(ParseIntError)
RmpDecodeError(Error)
Basic(StringError)
Implementations§
Source§impl OxenError
impl OxenError
pub fn basic_str(s: impl AsRef<str>) -> Self
pub fn thumbnailing_not_enabled(s: impl AsRef<str>) -> Self
pub fn authentication(s: impl AsRef<str>) -> Self
pub fn migration_required(s: impl AsRef<str>) -> Self
pub fn invalid_version(s: impl AsRef<str>) -> Self
pub fn oxen_update_required(s: impl AsRef<str>) -> Self
pub fn user_config_not_found(value: StringError) -> Self
pub fn repo_not_found(repo: RepoNew) -> Self
pub fn file_import_error(s: impl AsRef<str>) -> Self
pub fn remote_not_set(name: impl AsRef<str>) -> Self
pub fn remote_not_found(remote: Remote) -> Self
pub fn remote_ahead_of_local() -> Self
pub fn upstream_merge_conflict() -> Self
pub fn merge_conflict(desc: impl AsRef<str>) -> Self
pub fn incomplete_local_history() -> Self
pub fn remote_branch_locked() -> Self
pub fn operation_cancelled() -> Self
pub fn resource_not_found(value: impl AsRef<str>) -> Self
pub fn path_does_not_exist(path: impl AsRef<Path>) -> Self
pub fn image_metadata_error(s: impl AsRef<str>) -> Self
pub fn sql_parse_error(s: impl AsRef<str>) -> Self
pub fn parsed_resource_not_found(resource: ParsedResource) -> Self
pub fn invalid_repo_name(s: impl AsRef<str>) -> Self
pub fn is_auth_error(&self) -> bool
pub fn is_not_found(&self) -> bool
pub fn repo_already_exists(repo: RepoNew) -> Self
pub fn repo_already_exists_at_destination(value: StringError) -> Self
pub fn fork_status_not_found() -> Self
pub fn revision_not_found(value: StringError) -> Self
pub fn workspace_not_found(value: StringError) -> Self
pub fn workspace_behind(workspace: &Workspace) -> Self
pub fn root_commit_does_not_match(commit: Commit) -> Self
pub fn no_commits_found() -> Self
pub fn local_repo_not_found(dir: impl AsRef<Path>) -> OxenError
pub fn email_and_name_not_set() -> OxenError
pub fn remote_repo_not_found(url: impl AsRef<str>) -> OxenError
pub fn head_not_found() -> OxenError
pub fn home_dir_not_found() -> OxenError
pub fn cache_dir_not_found() -> OxenError
pub fn must_be_on_valid_branch() -> OxenError
pub fn no_schemas_staged() -> OxenError
pub fn no_schemas_committed() -> OxenError
pub fn schema_does_not_exist_for_file(path: impl AsRef<Path>) -> OxenError
pub fn schema_does_not_exist(path: impl AsRef<Path>) -> OxenError
pub fn schema_does_not_have_field(field: impl AsRef<str>) -> OxenError
pub fn schema_has_changed( old_schema: Schema, current_schema: Schema, ) -> OxenError
pub fn remote_branch_not_found(name: impl AsRef<str>) -> OxenError
pub fn local_branch_not_found(name: impl AsRef<str>) -> OxenError
pub fn commit_db_corrupted(commit_id: impl AsRef<str>) -> OxenError
pub fn commit_id_does_not_exist(commit_id: impl AsRef<str>) -> OxenError
pub fn local_parent_link_broken(commit_id: impl AsRef<str>) -> OxenError
pub fn entry_does_not_exist(path: impl AsRef<Path>) -> OxenError
pub fn file_error(path: impl AsRef<Path>, error: Error) -> OxenError
pub fn file_create_error(path: impl AsRef<Path>, error: Error) -> OxenError
pub fn dir_create_error(path: impl AsRef<Path>, error: Error) -> OxenError
pub fn file_open_error(path: impl AsRef<Path>, error: Error) -> OxenError
pub fn file_read_error(path: impl AsRef<Path>, error: Error) -> OxenError
pub fn file_metadata_error(path: impl AsRef<Path>, error: Error) -> OxenError
pub fn file_copy_error( src: impl AsRef<Path>, dst: impl AsRef<Path>, err: impl Debug, ) -> OxenError
pub fn file_rename_error( src: impl AsRef<Path>, dst: impl AsRef<Path>, err: impl Debug, ) -> OxenError
pub fn workspace_add_file_not_in_repo(path: impl AsRef<Path>) -> OxenError
pub fn cannot_overwrite_files(paths: &[PathBuf]) -> OxenError
pub fn entry_does_not_exist_in_commit( path: impl AsRef<Path>, commit_id: impl AsRef<str>, ) -> OxenError
pub fn must_supply_valid_api_key() -> OxenError
pub fn file_has_no_parent(path: impl AsRef<Path>) -> OxenError
pub fn file_has_no_name(path: impl AsRef<Path>) -> OxenError
pub fn could_not_convert_path_to_str(path: impl AsRef<Path>) -> OxenError
pub fn local_revision_not_found(name: impl AsRef<str>) -> OxenError
pub fn could_not_find_merge_conflict(path: impl AsRef<Path>) -> OxenError
pub fn could_not_decode_value_for_key_error(key: impl AsRef<str>) -> OxenError
pub fn invalid_set_remote_url(url: impl AsRef<str>) -> OxenError
pub fn invalid_file_type(file_type: impl AsRef<str>) -> OxenError
pub fn column_name_already_exists(column_name: &str) -> OxenError
pub fn column_name_not_found(column_name: &str) -> OxenError
pub fn incompatible_schemas(schema: Schema) -> OxenError
pub fn parse_error(value: impl AsRef<str>) -> OxenError
Trait Implementations§
Source§impl Error for OxenError
impl Error for OxenError
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<ArrowError> for OxenError
impl From<ArrowError> for OxenError
Source§fn from(error: ArrowError) -> Self
fn from(error: ArrowError) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for OxenError
impl From<FromUtf8Error> for OxenError
Source§fn from(error: FromUtf8Error) -> Self
fn from(error: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<ImageError> for OxenError
impl From<ImageError> for OxenError
Source§fn from(error: ImageError) -> Self
fn from(error: ImageError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidUri> for OxenError
impl From<InvalidUri> for OxenError
Source§fn from(error: InvalidUri) -> Self
fn from(error: InvalidUri) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for OxenError
impl From<ParseError> for OxenError
Source§fn from(error: ParseError) -> Self
fn from(error: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for OxenError
impl From<ParseIntError> for OxenError
Source§fn from(error: ParseIntError) -> Self
fn from(error: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<PatternError> for OxenError
impl From<PatternError> for OxenError
Source§fn from(error: PatternError) -> Self
fn from(error: PatternError) -> Self
Converts to this type from the input type.
Source§impl From<PolarsError> for OxenError
impl From<PolarsError> for OxenError
Source§fn from(err: PolarsError) -> Self
fn from(err: PolarsError) -> Self
Converts to this type from the input type.
Source§impl From<RedisError> for OxenError
impl From<RedisError> for OxenError
Source§fn from(error: RedisError) -> Self
fn from(error: RedisError) -> Self
Converts to this type from the input type.
Source§impl From<StripPrefixError> for OxenError
impl From<StripPrefixError> for OxenError
Source§fn from(error: StripPrefixError) -> Self
fn from(error: StripPrefixError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OxenError
impl !RefUnwindSafe for OxenError
impl Send for OxenError
impl Sync for OxenError
impl Unpin for OxenError
impl UnsafeUnpin for OxenError
impl !UnwindSafe for OxenError
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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read moreSource§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.